{"id":"MAL-2026-16307","revision":"eb3101658fce4e1ab31742a908a70cab","records":[{"revision":"eb3101658fce4e1ab31742a908a70cab","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16307","aliases":[],"title":"Malicious code in chai-testing (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (da6bebc82e500e38b0ab9c507b1d56c18a05a1ffd04fcee60f0dcad991c8944a)\nThe package's main entry (index.js) spawns a detached `node lib/caller.js` when the module is required. caller.js base64-decodes a hardcoded URL (https://ipcheck-hashed.vercel.app/api/auth/...) stored in a fake `process.env.DEV_API_KEY` constant, POSTs to that endpoint via axios, and executes the returned body by constructing a Function and invoking it with Node's `require`. The endpoint and header values are base64-encoded and decoded with atob at runtime to hide the destination from review. The package name and README metadata mimic legitimate chai/pino testing and logging libraries, but the shipped code is unrelated to any advertised functionality. Requiring the module — including via the exported middleware, which invokes the dropper as a side effect — triggers execution of attacker-controlled JavaScript with full Node privileges on the installer's host.\n","state":0,"publishedAt":"2026-09-21T03:20:32+00:00","modifiedAt":"2026-09-21T03:30:17.6319357+00:00","affected":[{"ecosystem":"npm","name":"chai-testing","ranges":[],"versions":["1.1.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-testing/v/1.1.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16307","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16307","identifiers":["MAL-2026-16307"]},"retained":false,"historicalAffected":[]}],"coverage":[]}