{"id":"MAL-2026-10151","revision":"3b9b579207fd4bab8bca88ae5d82a6c1","records":[{"revision":"3b9b579207fd4bab8bca88ae5d82a6c1","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10151","aliases":[],"title":"Malicious code in buffer-util-internal (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d329e426a3af00dc4cb53c8535a3e53848f09a1b80e561f84f29c77bffe746d7)\nPackage impersonates Feross Aboukhadijeh's widely-used `buffer` package, copying its author, repository, contributors, and description metadata while publishing under the name `buffer-util-internal`. The main module `index.js` contains a top-level IIFE that base64-decodes a hardcoded URL (decoding to https://www.jsonkeeper.com/b/PT0ON), fetches a JSON document from that anonymous paste host, and passes the response's `content` field directly to `eval`. The destination URL is hidden behind a variable named `tokenStringRe` with a misleading `// Random string to generate strong random value` comment, alongside a second base64 string referencing a sibling paste id. Because the fetched content is attacker-mutable, every consumer that requires this package executes whatever JavaScript the paste host serves at that moment — a full remote code execution primitive on the installer at require time. The package also declares unusual dependencies (axios, execp, request) inconsistent with the legitimate `buffer` package.\n","state":0,"publishedAt":"2026-07-10T16:54:54+00:00","modifiedAt":"2026-07-10T17:17:01.8842969+00:00","affected":[{"ecosystem":"npm","name":"buffer-util-internal","ranges":[],"versions":["1.0.13","1.0.14"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/buffer-util-internal/v/1.0.13","https://www.npmjs.com/package/buffer-util-internal/v/1.0.14"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10151","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10151","identifiers":["MAL-2026-10151"]},"retained":false,"historicalAffected":[]}],"coverage":[]}