{"id":"MAL-2026-10114","revision":"cddfeb8e1cf2434980abc2b5260b9eeb","records":[{"revision":"cddfeb8e1cf2434980abc2b5260b9eeb","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10114","aliases":[],"title":"Malicious code in driftpin (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bb2b2601b0e4e6659a7fd042e4f227e3d22880c51355a793dbdc2e42d39805d5)\ndriftpin@1.0.0 advertises itself in the README as an SVG sanitization/minification/conversion utility, but the only actual export from index.js is an undocumented function `getPlugin`. When a consumer calls `getPlugin()()`, the returned closure performs an HTTP GET against https://www.jsonkeeper.com/b/3P9BF — an anonymous, mutable paste host — parses the JSON response, and passes the response's `model` field directly to `eval`. Whoever controls the paste can change its contents at any moment to run arbitrary JavaScript inside any process that loads driftpin and invokes the export. The advertised SVG functionality is a cover story; the documented API surface (sanitizeSVG/minifySVG/saveSVG/convertSVGToPNG) is not actually exported. Additionally, index.js `require('request')` without declaring `request` in package.json dependencies, indicating the backdoor was grafted onto an unrelated skeleton.\n","state":0,"publishedAt":"2026-07-10T06:45:55+00:00","modifiedAt":"2026-07-10T08:01:50.8292956+00:00","affected":[{"ecosystem":"npm","name":"driftpin","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/driftpin/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10114","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10114","identifiers":["MAL-2026-10114"]},"retained":false,"historicalAffected":[]}],"coverage":[]}