{"id":"MAL-2026-13942","revision":null,"records":[{"revision":"212f6f429fe24d4c846530db84dc53e0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13942","aliases":[],"title":"Malicious code in chai-as-reformed (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ae73388f2a877d421e53b37bdd36496a8048149ffe2e64a975e87c705f8b0e45)\nThe package impersonates chai-as-promised and copies its README from pino, but its exported middleware spawns a detached `node lib/caller.js` process. caller.js base64-decodes a hardcoded jsonstorage.net URL (concealed together with an `x-secret-key` header name/value as base64 literals in a synthetic `process.env` object decoded with `atob`), fetches the JSON response, and passes its `cookie` field to `new Function.constructor(\"require\", s)(require)`, executing attacker-controlled JavaScript in the host Node.js process with access to `require`. The remote payload is mutable and can be changed by the operator of the storage URL at any time.\n","state":0,"publishedAt":"2026-08-13T17:21:22+00:00","modifiedAt":"2026-08-13T17:30:13.4749099+00:00","affected":[{"ecosystem":"npm","name":"chai-as-reformed","ranges":[],"versions":["1.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-reformed/v/1.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13942","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13942","identifiers":["MAL-2026-13942"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T03:27:53.8030274+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T03:27:53.8030274+00:00","lastSuccessAt":"2026-11-22T03:27:53.96342+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:27:53.9634235+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-78f4dea951e0b05468af5e794b786967f0de00fb6eef43289dc05e01419f7040","complete":true,"records":430372,"lastAttemptAt":"2026-11-22T03:25:31.9073146+00:00","lastSuccessAt":"2026-11-22T03:25:31.8907132+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:25:31.9073146+00:00","snapshotPublishedAt":"2026-11-22T02:35:42+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-5332a4885b544e3f89871d6fa3011b6f","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T03:34:43.7146765+00:00","lastSuccessAt":"2026-11-22T03:34:43.7810527+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:34:43.7810527+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T03:27:53.8030274+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T03:27:53.8030274+00:00","lastSuccessAt":"2026-11-22T03:27:53.9641843+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:27:53.9641844+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-36424b7baa264118be2a201e80ec0baf","complete":false,"records":13939,"lastAttemptAt":"2026-11-22T03:28:19.115931+00:00","lastSuccessAt":"2026-11-22T03:28:19.113+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:28:19.113+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13848,"expectedIdentifiers":13975,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T03:27:53.7556121+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:27:53.7556121+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T03:25:31.9508431+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:25:31.9508431+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T03:27:53.768051+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:27:53.768051+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-e423e507d2d3301919ac05ddb43199a4d83017ce70b74c2ae2cbae5419b33523","complete":true,"records":232851,"lastAttemptAt":"2026-11-22T03:27:53.6336641+00:00","lastSuccessAt":"2026-11-22T03:27:52.8209384+00:00","error":null,"lastVerifiedAt":"2026-11-22T03:27:53.6336641+00:00","snapshotPublishedAt":"2026-11-22T02:48:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}