{"id":"GHSA-qcc9-j6wh-4h9h","revision":null,"records":[{"revision":"11a627265ae64db281799aadf7cc8922","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6585","aliases":["GHSA-qcc9-j6wh-4h9h"],"title":"Malicious code in stake-math (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a475d161b669ae748124a4d6c1da29ebda6e40da4aa5c3c5e8b10645ef96f57a)\nOn `npm install`, the package's postinstall hook (`scripts/install-check.cjs`, wired via package.json `scripts.postinstall`) fetches a JSON config from a hardcoded non-publisher host (`https://www.log-prettier.store/config/stake-peer-sync.json`), reads a tgz URL from that config, downloads the tarball, extracts it, runs a nested `npm install` inside the extracted directory, and then `require()`s `peer-math.js` from the dropped tree, executing it in the installer's Node process. There is no version pin, hash, or signature check, and the control-plane host is mutable and unrelated to the package's advertised purpose (a small Kelly-stake math helper) or to any legitimate publisher. The package also exhibits identity divergence: `package.json` `name` is `stake-math` while the README presents it as `polymarket-stake-math`, and `homepage` points at the same unrelated `log-prettier.store` domain — consistent with brand impersonation used to lure installers into running the dropper. Installing this version results in arbitrary attacker-controlled code execution on the installer machine.\n\n## Source: ghsa-malware (0c0588616ff1e3cda86498497275add22443058899d0b9866cf3579e9f679c4f)\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-29T05:33:56+00:00","modifiedAt":"2026-07-30T04:36:08.1958469+00:00","affected":[{"ecosystem":"npm","name":"stake-math","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["3.5.2","3.5.3","3.5.4","3.3.0","3.2.0","3.1.0","3.5.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/stake-math/v/3.5.2","https://www.npmjs.com/package/stake-math/v/3.5.3","https://www.npmjs.com/package/stake-math/v/3.5.4","https://www.npmjs.com/package/stake-math/v/3.3.0","https://www.npmjs.com/package/stake-math/v/3.2.0","https://www.npmjs.com/package/stake-math/v/3.1.0","https://www.npmjs.com/package/stake-math/v/3.5.5","https://github.com/advisories/GHSA-qcc9-j6wh-4h9h"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6585","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6585","identifiers":["MAL-2026-6585","GHSA-qcc9-j6wh-4h9h"]},"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-23T16:25:43.1952239+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T16:25:43.1952239+00:00","lastSuccessAt":"2026-11-23T16:25:43.9214764+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:43.9214765+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-d008fb8e7e5a0f37166ee57a6d9d22b27e49b9d9438b4ce80c4c6c326ac5d75a-5092b4768b7de7fbfe59d24760fc1196dae268b1e4203622d4e7c173eb995f84","complete":true,"records":430725,"lastAttemptAt":"2026-11-23T16:25:42.8839863+00:00","lastSuccessAt":"2026-11-23T16:25:42.6346589+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:42.8839863+00:00","snapshotPublishedAt":"2026-11-23T16:24:54+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-5fe844981bd44e168da004739c627adb","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T16:35:33.8190521+00:00","lastSuccessAt":"2026-11-23T16:35:33.815+00:00","error":"300 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T16:35:33.815+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13669,"expectedIdentifiers":13976,"failedIdentifiers":300},{"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-23T16:25:43.1952239+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T16:25:43.1952239+00:00","lastSuccessAt":"2026-11-23T16:25:43.9224456+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:43.9224458+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-dd5cfceec1694766bbb29d0239e21f97","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T16:25:44.800211+00:00","lastSuccessAt":"2026-11-23T15:27:09.616+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:09.616+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13976,"expectedIdentifiers":13976,"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-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-23T16:25:43.1385997+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:43.1385997+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+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-23T16:25:42.9363161+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:42.9363161+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-9035327876399d833ccd89428db993d67e1ee675265fd15c191a68c5fa77f5a4","complete":true,"records":3216,"lastAttemptAt":"2026-11-23T16:25:43.1515305+00:00","lastSuccessAt":"2026-11-23T10:27:16.8439398+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:43.1515305+00:00","snapshotPublishedAt":"2026-11-23T09:49:12+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-3340b862eb26c691d3c6f12d5b7bdaf5cb7b1594a75a2c43c36611e34a1d7547","complete":true,"records":232896,"lastAttemptAt":"2026-11-23T16:25:43.0370939+00:00","lastSuccessAt":"2026-11-23T15:27:07.1405359+00:00","error":null,"lastVerifiedAt":"2026-11-23T16:25:43.0370939+00:00","snapshotPublishedAt":"2026-11-23T14:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}