Skip to main content
MalwarePublished

chain-devkit (npm) · Malicious Code

Affects chain-devkitSource GCVE Database

0

Malicious package : remove chain-devkit and rotate any secrets on hosts that installed it.

Data as of 14 Jul 2026, 09:32 UTC

Classification

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

ProductAffectedFixed in
npmchain-devkitAffected
  • =1.0.0
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.

References

Community reviews

Loading reviews…