{"id":"MAL-2026-11558","revision":null,"records":[{"revision":"d4f8efc68b1f4d19af73f3c9d250e2a6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11558","aliases":["GHSA-583f-9h76-9fx2"],"title":"Malicious code in @cacheable/memory (npm)","description":"npm/@cacheable/memory version 2.2.1 is a trojanized release published on 2026-08-04 during the compromise of the npm/GitHub maintainer account behind the keyv and cacheable package families (user \"Jaredwray\"). Attackers pushed the malicious payload to the source repository and cut releases through GitHub Actions, so the poisoned versions reached npm with a valid, signed provenance attestation (provenance attests build integrity, not source integrity). Delivery is through the npm install lifecycle: the trojanized package.json adds a preinstall hook (`\"preinstall\": \"node setup.mjs\"`) that runs before any project code on a bare `npm install`, while the normal compiled output is left intact so the package still works after install. setup.mjs downloads a standalone Bun runtime and uses it to run a second stage (shipped as Math_Symbol.js, a heavily obfuscated ~728 KB Bun bundle, referenced at runtime as math_init.js). The stealer harvests credentials from cloud instance metadata (AWS IMDS at 169.254.169.254, ECS at 169.254.170.2, GCP, Azure), AWS/GCP/Azure keys, HashiCorp Vault tokens, Kubernetes service-account tokens, GitHub Actions OIDC and org/repo secrets, and npm tokens, with a TruffleHog-style regex sweep for further secrets and private keys. Using the stolen npm identity (including npm OIDC trusted publishing) it enumerates and republishes further packages the token can reach — which, for a maintainer controlling both keyv and cacheable, gave the worm a large blast radius. Stolen findings are exfiltrated to attacker-created GitHub repositories (descriptions reading \"Shai-Hulud: Here We Go Again\") and to destinations resolved over DNS, and autostart hooks are planted in the repository's .claude/ and .vscode/ configuration to run the loader when a developer or AI coding agent opens a clone. Treat any environment that installed this version (with install scripts enabled) as fully compromised and rotate every reachable credential. Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ebe7a0a2aff9bf2b220ec45815bac808fad1beff90c727413d80660fe517f405)\npackage.json declares `preinstall: node setup.mjs`. setup.mjs is a heavily obfuscated script (string-array table with RC4-based decoder, per-call scrambled hex indices) that reconstructs all URLs, command names, and file paths at runtime. On install it downloads a Bun runtime archive from github.com/oven-sh/bun releases (platform-selected), extracts it (custom EOCD/inflate reader on Unix, PowerShell Expand-Archive on Windows), chmods the `bun` binary, and executes it against the sibling `Math_Symbol.js` — a 727KB Bun-compiled (`// @bun @bun-cjs`) obfuscated second-stage payload that is opaque to Node-based scanners because it only runs under the fetched alternate runtime. The package advertises itself as `High Performance In-Memory Cache for Node.js` and copies the jaredwray/cacheable author and repository metadata, and it ships a normal-looking dist/index.cjs, but the obfuscated preinstall + Bun payload has no relationship to that advertised purpose. The alternate-runtime-dropper chain (obfuscated preinstall → fetch second runtime → execute opaque bundled payload) grants arbitrary code execution on any installer's host at `npm install` time.\n\n## Source: ghsa-malware (451021493ba0e9af7a9293eba6f30355c8274cf2e596c30d00923731a4fe2a99)\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-08-04T11:35:29+00:00","modifiedAt":"2026-08-05T07:19:54.742534+00:00","affected":[{"ecosystem":"npm","name":"@cacheable/memory","ranges":[],"versions":["2.2.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain","https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack","https://safedep.io/keyv-npm-supply-chain-compromise/","https://www.npmjs.com/package/@cacheable/memory","https://github.com/advisories/GHSA-583f-9h76-9fx2","https://www.npmjs.com/package/@cacheable/memory/v/2.2.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11558","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11558","identifiers":["MAL-2026-11558","GHSA-583f-9h76-9fx2"]},"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-23T08:27:38.4785192+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T08:27:38.4785192+00:00","lastSuccessAt":"2026-11-23T08:27:38.6549271+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:27:38.6549272+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-3e02d059768a72112b8641955e4e27fc94f46c7d060ac534afd8f74f879e95c2","complete":true,"records":430589,"lastAttemptAt":"2026-11-23T09:25:40.1538459+00:00","lastSuccessAt":"2026-11-23T09:25:39.9233088+00:00","error":null,"lastVerifiedAt":"2026-11-23T09:25:40.1538459+00:00","snapshotPublishedAt":"2026-11-23T08:32:34+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-bd28271038e04d998b47ef190102b277","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T08:36:06.9205128+00:00","lastSuccessAt":"2026-11-23T08:36:06.916+00:00","error":"139 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T08:36:06.916+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13831,"expectedIdentifiers":13976,"failedIdentifiers":139},{"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-23T08:27:38.4785192+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T08:27:38.4785192+00:00","lastSuccessAt":"2026-11-23T08:27:38.6559556+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:27:38.6559558+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-7a6f177e9faa413ba7fe40538706cfab","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T08:27:39.8630762+00:00","lastSuccessAt":"2026-11-23T08:27:39.857+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:27:39.857+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-23T08:27:38.4274209+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:27:38.4274209+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-23T09:25:40.21794+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T09:25:40.21794+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-34e3febe229a8c4d306159756d21338234dcade8dc1897229c4083bb83bd0f50","complete":true,"records":3215,"lastAttemptAt":"2026-11-23T08:27:38.4435363+00:00","lastSuccessAt":"2026-11-22T22:25:42.902989+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:27:38.4435363+00:00","snapshotPublishedAt":"2026-11-22T21:48:33+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-19217f9883f6a0cd04f690f4472a4359df75c8f2b93e660474cdd4b2befd7e50","complete":true,"records":232869,"lastAttemptAt":"2026-11-23T09:25:47.8079701+00:00","lastSuccessAt":"2026-11-23T08:27:37.159953+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:27:38.2788728+00:00","snapshotPublishedAt":"2026-11-23T07:48:55+00:00","importing":true,"stagedRecords":42000,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}