chai-as-chains (npm) · Malicious Code
Affects chai-as-chainsSource GCVE Database
Malicious package : remove chai-as-chains and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 09:07 UTC
Malicious package
Published to npm · OSV MAL-2026-2339
What to do
Remove chai-as-chains 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 |
|---|---|---|
npmchai-as-chainspkg:npm/chai-as-chainsOther threats | 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 npm package chai-as-chains versions 1.2.4, 1.2.7, and 1.2.8 were found to contain malicious code. This indicates that these specific package versions may pose a security risk if used in software projects. There is no CVSS score or detailed technical analysis available, and no known exploits in the wild have been reported. No official patch or remediation guidance is provided in the available data.