{"id":"GHSA-cq8q-99vp-qjfx","revision":null,"records":[{"revision":"2b57a54ea88f450e9c6cd89278a05d71","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11825","aliases":["GHSA-cq8q-99vp-qjfx"],"title":"Malicious code in @servicetitan/anvil2-ext-charts (npm)","description":"npm/@servicetitan/anvil2-ext-charts is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the \"Shai-Hulud: Here We Go Again\" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook (`\"preinstall\": \"node setup.mjs\"`) that runs on a bare `npm install`, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as Math_Symbol.js / math_init.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading \"Shai-Hulud: Here We Go Again\") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). 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 (8aab277df9feb4ebef95e706754a7b151f6ac8b619cf60f46e88fe6f908372e3)\nPackage @servicetitan/anvil2-ext-charts@0.2.5 declares a preinstall hook `node setup.mjs`. setup.mjs is hand-obfuscated (_0x-style identifier munging and string-lookup dispatch tables wrapping execFileSync/https.get/readFileSync), platform-branches to pick a Bun binary variant, downloads a Bun runtime archive from https://github.com/oven-sh/bun/releases/download/bun-v<version>/<platformBinary>.zip into a temp directory, unzips it, chmods the binary to 0755, and then execFileSync's the freshly downloaded Bun against the sibling file math_init.js. math_init.js is a single ~727KB minified line tagged `// @bun @bun-cjs` (Bun bytecode/bundle format that Node cannot parse), containing a shuffled numeric/string array (n7gIxM), an array-rotate routine (WV8StW), and a base64-alphabet string-array decoder (hc1jfK9) — the standard string-array-decoder loader shape. The package advertises itself as a charts extension and has no legitimate reason to fetch a second language runtime at install time to execute an opaque obfuscated sibling. package.json metadata is empty (`author`, `description`, `keywords`) while the name occupies the @servicetitan scope and references an internal `anvil2` component, consistent with a dependency-confusion / scope-impersonation lure. Installing the package runs attacker-chosen code under the Bun runtime on the installer's machine at npm install time; because the executed payload is Bun bytecode, its behavior cannot be inspected from the Node source alone.\n\n## Source: ghsa-malware (5def5ba1c520b63f0be347736dd6911a95246923bebbb3dc432e56a0b30f4ef4)\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-04T15:28:07+00:00","modifiedAt":"2026-08-05T10:05:35.4329063+00:00","affected":[{"ecosystem":"npm","name":"@servicetitan/anvil2-ext-charts","ranges":[],"versions":["0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.2.10"],"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/@servicetitan/anvil2-ext-charts","https://github.com/advisories/GHSA-cq8q-99vp-qjfx","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.6","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.10","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.5","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.9","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.8","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.4","https://www.npmjs.com/package/@servicetitan/anvil2-ext-charts/v/0.2.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11825","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11825","identifiers":["MAL-2026-11825","GHSA-cq8q-99vp-qjfx"]},"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-23T04:25:28.7567575+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T04:25:28.7567575+00:00","lastSuccessAt":"2026-11-23T04:25:28.9125932+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.9125933+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-71e9d10f2d0d97eca621106109d8636469d8d8ec589e3938acb9e721cca91333","complete":true,"records":430573,"lastAttemptAt":"2026-11-23T04:25:28.0098632+00:00","lastSuccessAt":"2026-11-23T03:25:38.2432693+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.0098632+00:00","snapshotPublishedAt":"2026-11-23T03:21:53+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-8c42624630d549c5aaa8eb5166c62460","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T04:31:17.7955537+00:00","lastSuccessAt":"2026-11-23T04:31:16.773+00:00","error":"73 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T04:31:16.773+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13902,"expectedIdentifiers":13976,"failedIdentifiers":73},{"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-23T04:25:28.7567575+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T04:25:28.7567575+00:00","lastSuccessAt":"2026-11-23T04:25:28.9134121+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.9134122+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-099dac35d3474a8f8eaa6c2b9df19fe4","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T04:25:31.5873548+00:00","lastSuccessAt":"2026-11-23T04:25:31.583+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:31.583+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-23T04:25:28.6422415+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.6422415+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-23T04:25:28.0701608+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.0701608+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-23T04:25:28.6554523+00:00","lastSuccessAt":"2026-11-22T22:25:42.902989+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.6554523+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-5abb21d725460b21f93bad26179c7923894a2fe13d4928b7b1738e27a6f823c2","complete":true,"records":232863,"lastAttemptAt":"2026-11-23T04:25:28.5392693+00:00","lastSuccessAt":"2026-11-23T01:36:55.4868701+00:00","error":null,"lastVerifiedAt":"2026-11-23T04:25:28.5392693+00:00","snapshotPublishedAt":"2026-11-23T00:48:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}