{"id":"GHSA-8f9p-rcjg-hhx4","revision":null,"records":[{"revision":"c4d4b74282e749a5b48eb7fdae20deef","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6365","aliases":["GHSA-8f9p-rcjg-hhx4"],"title":"Malicious code in assertcore (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4bd2844909a6dd6db77af2d47b2d9a16ff126d892998282f4df4c7ed1f61a4af)\nPackage `assertcore` impersonates the popular `chai` assertion library (ships a copy of chai source as cover; author and homepage differ from the genuine project). On `require('assertcore')` / `import 'assertcore'`, `index.js` spawns a detached `node` subprocess running `lib/chai/utils/addAssertion.js` with stdio set to ignore: `const chaiBinding = spawn(\"node\", [addAssertion, JSON.stringify(args)], {detached: true, stdio: \"ignore\"})`. The spawned script is heavily obfuscated using obfuscator.io string-array rotation, a base64-with-substitution decoder, and hex-arithmetic indexing to hide that it `require`s http(s), performs a GET to a URL assembled from obfuscated literals, and passes the response body into `new Function('require', body)(require)` — executing attacker-supplied JavaScript with full Node privileges on every install or require. The combination of name impersonation, chai-source cover, detached/silenced subprocess, obfuscated network destination, and import-time fetch-and-eval is an unambiguous supply-chain attack on installers.\n\n## Source: ghsa-malware (4b9c1b24c21140b120efceeccb9ced05c56a580dca792d07c43cffa1e24d7ca8)\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-24T03:50:42+00:00","modifiedAt":"2026-07-15T05:19:44.3524872+00:00","affected":[{"ecosystem":"npm","name":"assertcore","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["3.1.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/assertcore/v/3.1.7","https://github.com/advisories/GHSA-8f9p-rcjg-hhx4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6365","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6365","identifiers":["MAL-2026-6365","GHSA-8f9p-rcjg-hhx4"]},"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-24T19:04:00.0638408+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-24T19:04:00.0638408+00:00","lastSuccessAt":"2026-11-24T19:04:00.2567929+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:00.2567941+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-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-1daa7f1b67108fe35131620b8b0a5746e6fe20269a757846341bc45ffc7235c2","complete":true,"records":431554,"lastAttemptAt":"2026-11-24T19:02:03.7322381+00:00","lastSuccessAt":"2026-11-24T19:02:03.5417608+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:02:03.7322381+00:00","snapshotPublishedAt":"2026-11-24T18:24:57+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-688c786e0e154f0aa5ebda26bfba5e3a","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T19:05:48.271103+00:00","lastSuccessAt":"2026-11-24T19:05:48.266+00:00","error":"94 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T19:05:48.266+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13877,"expectedIdentifiers":13982,"failedIdentifiers":94},{"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-24T19:04:00.0638408+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T19:04:00.0638408+00:00","lastSuccessAt":"2026-11-24T19:04:00.2576656+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:00.2576659+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-a4d3d64b93df4d1da3938d27196fcba8","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T19:04:25.9392073+00:00","lastSuccessAt":"2026-11-24T19:04:25.935+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:25.935+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"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-4929b8b852ac0d08034af08eb3f8801ac97c81d230bedb3a3a0710d6b4e692b2","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T19:03:59.9069049+00:00","lastSuccessAt":"2026-11-24T18:03:57.9682362+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:03:59.9069049+00:00","snapshotPublishedAt":"2026-11-24T17:33:45+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-24T19:02:03.8828812+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:02:03.8828812+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-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T19:04:00.0151969+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:00.0151969+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+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-44152768b3aabd79974e12387f59fcbffd2373284eb946ae9e13df00d985abde","complete":true,"records":233039,"lastAttemptAt":"2026-11-24T19:03:59.7804047+00:00","lastSuccessAt":"2026-11-24T19:03:58.5695229+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:03:59.7804047+00:00","snapshotPublishedAt":"2026-11-24T18:33:49+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}