{"id":"MAL-2026-10049","revision":"6fd1b1e76f8b4423b101319caad17d56","records":[{"revision":"6fd1b1e76f8b4423b101319caad17d56","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10049","aliases":["GHSA-5368-rr57-2vg7"],"title":"Malicious code in chai-await-dom (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e78d8b4da2e781df4437569123ba3913c3f0135bbef66addaa5766a109fdd98b)\nThe package impersonates a pino-style logger API but its exported middleware spawns a detached Node child process that runs lib/caller.js. caller.js retrieves a JavaScript payload from https://jsonkeeper.com/b/BPB86 (an anonymous paste-style host) and executes it in-process via `new Function.constructor('require', s)(require)`, granting the remote host arbitrary code execution with the installer's Node privileges. lib/const.js stores a base64-encoded sibling URL (https://jsonkeeper.com/b/ZK45J decoded from `aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1pLNDVK`), deliberately obfuscating the C2 destination. The package name (chai-await-dom) does not match its actual behavior or its impersonated logger API surface, consistent with a namespace-abuse lure carrying a remote-code-execution payload.\n","state":0,"publishedAt":"2026-07-09T15:34:20+00:00","modifiedAt":"2026-09-01T11:31:30.4132571+00:00","affected":[{"ecosystem":"npm","name":"chai-await-dom","ranges":[],"versions":["1.3.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-await-dom/v/1.3.7","https://github.com/advisories/GHSA-5368-rr57-2vg7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10049","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10049","identifiers":["MAL-2026-10049","GHSA-5368-rr57-2vg7"]},"retained":false,"historicalAffected":[]}],"coverage":[]}