chai-as-patched (npm) · Malicious Code
Affects chai-as-patchedSource GCVE Database
Malicious package : remove chai-as-patched and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 09:08 UTC
Malicious package
Published to npm · OSV MAL-2026-7237
What to do
Remove chai-as-patched 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-patchedpkg:npm/chai-as-patchedOther 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-patched' versions 7.0.5 and 7.0.6 contain malicious code. This is identified as a malicious package incident without detailed technical disclosure or known active exploits. No official patch or remediation guidance is provided in the available data.