{"id":"MAL-2026-15818","revision":"4a2aa86cb80241f8a5f6f50333f590b7","records":[{"revision":"4a2aa86cb80241f8a5f6f50333f590b7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15818","aliases":[],"title":"Malicious code in vitest-cli-pro (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1262dc722ebac3b91301efde91e61df9ec9f65ccf91e51c15da53f9b518878b2)\nPackage published as vitest-cli-pro ships a verbatim copy of nodemailer as cover; its declared postinstall runs lib/utils/index.js, which detaches a child Node process to execute lib/utils/smtp-connection/index.js. That file performs an HTTPS GET to https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659 and passes the returned `record.cookie` value to `new Function(require)` for immediate execution. The JSON bin is attacker-controlled and mutable, so arbitrary JavaScript runs on any machine executing `npm install vitest-cli-pro`, under the installer's user account. The nodemailer main and the vitest-branded name serve as a cover story for the dropper.\n","state":0,"publishedAt":"2026-09-02T03:58:15+00:00","modifiedAt":"2026-09-02T04:30:05.6950225+00:00","affected":[{"ecosystem":"npm","name":"vitest-cli-pro","ranges":[],"versions":["10.0.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/vitest-cli-pro/v/10.0.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15818","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15818","identifiers":["MAL-2026-15818"]},"retained":false,"historicalAffected":[]}],"coverage":[]}