{"id":"MAL-2026-5901","revision":null,"records":[{"revision":"c7f3cc4b4dbf4812a77bf2cca5ca13ce","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5901","aliases":["GHSA-jpr9-h23w-g7gg"],"title":"Malicious code in chai-as-polished (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b2ea0d46e0bb4382e8d684d025cb72b7f99e37874c571e9946ae1268b70be6cf)\nPackage name is a one-edit typosquat of the widely-used chai-as-promised, but the shipped code is unrelated to chai. The exported middleware spawns a detached, unref'd child process running lib/initializeCaller.js. That file constructs a fake `process.env` containing three base64-encoded fields which decode to the URL https://tomato-brunhilda-40.tiiny.site/index.json and the header `x-secret-key: _`, fetches that URL via axios, and passes `response.data.cookie` to `new Function.constructor('require', response)(require)` — executing arbitrary attacker-supplied JavaScript with the installer's Node `require` available. The base64 staging of the URL and header has no functional purpose other than to hide the destination from cursory review. tiiny.site is an anonymous static-hosting service whose contents the author can change at any time, so the executed payload is fully attacker-controlled and mutable. Triggering requires a consumer to invoke the package's middleware, which is the documented entry point for anyone deceived by the name into installing it.\n\n## Source: ghsa-malware (869d873d0e1d2cf40fe6383629d3c195a5d8aca6d93a67cc04c5f54eab38bf57)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","state":0,"publishedAt":"2026-06-16T16:22:51+00:00","modifiedAt":"2026-09-01T11:31:00.9573712+00:00","affected":[{"ecosystem":"npm","name":"chai-as-polished","ranges":[],"versions":["7.0.8"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-polished/v/7.0.8","https://github.com/advisories/GHSA-jpr9-h23w-g7gg"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5901","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5901","identifiers":["MAL-2026-5901","GHSA-jpr9-h23w-g7gg"]},"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-20T01:30:50.0868967+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-20T01:30:50.0868967+00:00","lastSuccessAt":"2026-11-20T01:30:50.2988678+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:50.2988691+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-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-8739c76e681f900923b900c9df0ef75cf421d39cabb54650c4b9ad19b6a76d85","complete":true,"records":429245,"lastAttemptAt":"2026-11-20T01:28:56.7391663+00:00","lastSuccessAt":"2026-11-20T01:28:56.7326152+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:28:56.7391663+00:00","snapshotPublishedAt":"2026-11-20T00:37:21+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-01b3443cc65b459e8617c8b07ac43fdb","complete":false,"records":13903,"lastAttemptAt":"2026-11-20T01:40:51.4796561+00:00","lastSuccessAt":"2026-11-20T01:40:51.476+00:00","error":"545 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T01:40:51.476+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13379,"expectedIdentifiers":13951,"failedIdentifiers":545},{"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-20T01:30:50.0868967+00:00","complete":true,"records":1130,"lastAttemptAt":"2026-11-20T01:30:50.0868967+00:00","lastSuccessAt":"2026-11-20T01:30:51.1683724+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:51.1683802+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-43b304dc656d4b85b971690070f95280","complete":false,"records":13915,"lastAttemptAt":"2026-11-20T01:31:16.5278113+00:00","lastSuccessAt":"2026-11-20T01:31:16.525+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:31:16.525+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13924,"expectedIdentifiers":13951,"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-8c782c8bda9dbab8135c62bfbc9a19fa3557f15c26fbd641daea6b40b297253e","complete":true,"records":9981,"lastAttemptAt":"2026-11-20T01:30:46.9208001+00:00","lastSuccessAt":"2026-11-20T01:30:46.6941716+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:46.9208001+00:00","snapshotPublishedAt":"2026-11-20T00:33:13+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-94b3a229089d62296b97f627a772880f88ab7164d62486372661c0a39e321234","complete":true,"records":2019,"lastAttemptAt":"2026-11-20T01:29:01.9800827+00:00","lastSuccessAt":"2026-11-20T01:29:01.8774014+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:29:01.9800827+00:00","snapshotPublishedAt":"2026-11-20T00:17:59+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-7ce196026235c6501d0b2fb81592d1b9dc06e8705525d41efefd322e75f6c22f","complete":true,"records":3200,"lastAttemptAt":"2026-11-20T01:30:50.0540406+00:00","lastSuccessAt":"2026-11-20T01:30:49.8670987+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:50.0540406+00:00","snapshotPublishedAt":"2026-11-20T00:48:20+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-b718f7f78fadcc4a737d68629436f35cf7b6720df78267d9153074aa304ae364","complete":true,"records":232793,"lastAttemptAt":"2026-11-20T01:30:39.0535517+00:00","lastSuccessAt":"2026-11-20T01:30:38.0218274+00:00","error":null,"lastVerifiedAt":"2026-11-20T01:30:39.0535517+00:00","snapshotPublishedAt":"2026-11-20T01:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}