{"id":"GHSA-532p-c872-3926","revision":null,"records":[{"revision":"a82bb6e4868048cc80c29645cea483bf","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16255","aliases":["GHSA-532p-c872-3926"],"title":"Malicious code in randompkga (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c4e7dfd8fb150e4c7f087a17c2ed162a8e48fe7e4e253a68df901f0e775fd68c)\npackage.json declares a postinstall lifecycle script `cd \"$INIT_CWD\" && npm i randompkgb` that, on `npm install`, installs the additional npm package `randompkgb` into the consumer's project. A companion postinstall.js reads the installer's own package.json at $INIT_CWD, sets `dependencies.randompkgb = \"^1.0.0\"`, and writes the manifest back to disk, persisting the injected dependency across future installs and CI runs. The caret range is unpinned, so any current or future version of `randompkgb` — whose code is not present in this package and is not controlled by the installer — will be resolved and executed on the installer's machine at install time and on `require`. This is dependency-tree hijacking: the mechanism drops attacker-controlled third-party code into the installer's environment and rewrites source-controlled project state to make the injection durable.\n\n## Source: ghsa-malware (cfdfcd7cd3af1c7b280e6f13503a472f2b31582e239d6fac0b6cacc1709cf36f)\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-09-17T14:59:20+00:00","modifiedAt":"2026-09-23T04:31:17.5472363+00:00","affected":[{"ecosystem":"npm","name":"randompkga","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.9","1.0.11","1.0.4","1.0.22","1.0.15","1.0.13","1.0.16","1.0.7","1.0.14","1.0.5","1.0.17","1.0.10","1.0.12","1.0.8","1.0.21","1.0.18","1.0.1","1.0.6","1.0.20","1.0.2","1.0.3","1.0.19"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-532p-c872-3926","https://www.npmjs.com/package/randompkga/v/1.0.9","https://www.npmjs.com/package/randompkga/v/1.0.11","https://www.npmjs.com/package/randompkga/v/1.0.4","https://www.npmjs.com/package/randompkga/v/1.0.22","https://www.npmjs.com/package/randompkga/v/1.0.15","https://www.npmjs.com/package/randompkga/v/1.0.13","https://www.npmjs.com/package/randompkga/v/1.0.16","https://www.npmjs.com/package/randompkga/v/1.0.7","https://www.npmjs.com/package/randompkga/v/1.0.14","https://www.npmjs.com/package/randompkga/v/1.0.5","https://www.npmjs.com/package/randompkga/v/1.0.17","https://www.npmjs.com/package/randompkga/v/1.0.10","https://www.npmjs.com/package/randompkga/v/1.0.12","https://www.npmjs.com/package/randompkga/v/1.0.8","https://www.npmjs.com/package/randompkga/v/1.0.21","https://www.npmjs.com/package/randompkga/v/1.0.18","https://www.npmjs.com/package/randompkga/v/1.0.1","https://www.npmjs.com/package/randompkga/v/1.0.6","https://www.npmjs.com/package/randompkga/v/1.0.20","https://www.npmjs.com/package/randompkga/v/1.0.2","https://www.npmjs.com/package/randompkga/v/1.0.3","https://www.npmjs.com/package/randompkga/v/1.0.19"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16255","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16255","identifiers":["MAL-2026-16255","GHSA-532p-c872-3926"]},"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-12T20:18:28.6757759+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T20:18:28.6757759+00:00","lastSuccessAt":"2026-11-12T20:18:28.9399625+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:28.9399638+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-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-10dbd7e8374437942fae8107ee9412aa31306596e1009af478aed343a0964c7f","complete":true,"records":424825,"lastAttemptAt":"2026-11-12T20:16:25.334281+00:00","lastSuccessAt":"2026-11-12T20:16:25.0113103+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:16:25.334281+00:00","snapshotPublishedAt":"2026-11-12T19:27:19+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-367b55e188c64747ba0c4df3151c2af5","complete":true,"records":13777,"lastAttemptAt":"2026-11-12T20:18:32.2142141+00:00","lastSuccessAt":"2026-11-12T20:18:32.208+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:32.208+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13830,"expectedIdentifiers":13830,"failedIdentifiers":0},{"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-12T20:18:28.6757759+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-12T20:18:28.6757759+00:00","lastSuccessAt":"2026-11-12T20:18:28.9407518+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:28.9407519+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-7b81ed9b00664b57bd36260af1e82a93","complete":true,"records":13777,"lastAttemptAt":"2026-11-12T20:18:30.1210334+00:00","lastSuccessAt":"2026-11-12T20:18:30.116+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:30.116+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13830,"expectedIdentifiers":13830,"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-3aa2f7b2e0461b3b0ca26add25992529eb0c3a0bcda31696dca7b573cde1382c","complete":true,"records":9949,"lastAttemptAt":"2026-11-12T20:18:28.623289+00:00","lastSuccessAt":"2026-11-12T20:18:28.3432186+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:28.623289+00:00","snapshotPublishedAt":"2026-11-12T19:48:11+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-4d60731753a2f72e455d1086e7203d0ef10843936dcc1cf2b45135e2caa204b0","complete":true,"records":2012,"lastAttemptAt":"2026-11-12T20:16:25.491187+00:00","lastSuccessAt":"2026-11-12T18:16:50.7862525+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:16:25.491187+00:00","snapshotPublishedAt":"2026-11-12T17:48:11+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-0d57668ba92a2918d0664e89ea91d467f8e6a2bc6330923eb883b74ac42a14ec","complete":true,"records":3125,"lastAttemptAt":"2026-11-12T20:18:28.6390801+00:00","lastSuccessAt":"2026-11-12T15:18:36.6112732+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:28.6390801+00:00","snapshotPublishedAt":"2026-11-12T14:48:37+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-aacb2ea0a84f684226fd5e421ed31635112d695f522f1d5914b6afab8cc7f03c","complete":true,"records":231724,"lastAttemptAt":"2026-11-12T20:18:18.7339404+00:00","lastSuccessAt":"2026-11-12T20:18:18.1230476+00:00","error":null,"lastVerifiedAt":"2026-11-12T20:18:18.7339404+00:00","snapshotPublishedAt":"2026-11-12T19:33:03+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}