chain-devkit (npm) · Malicious Code
Affects chain-devkitSource GCVE Database
Malicious package : remove chain-devkit and rotate any secrets on hosts that installed it.
Data as of 14 Jul 2026, 09:32 UTC
Malicious package
Published to npm · OSV MAL-2026-10531
What to do
Remove chain-devkit from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmchain-devkit | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The chain-devkit npm package version 1.0.0 includes a postinstall script that fetches a YAML configuration file from an attacker-controlled domain without integrity checks. This YAML is parsed using a vulnerable js-yaml 3.12.0 loader that allows execution of arbitrary JavaScript Function objects embedded in the YAML content. Although the current package version only reads scalar fields and does not automatically execute code, the malicious Function objects persist on disk and could be executed by consumers or future versions of the package. The package is newly published with minimal metadata and no history, indicating a high risk of malicious intent.