chai-as-legit (npm) · Malicious Code
Affects chai-as-legitSource GCVE Database
Malicious package : remove chai-as-legit 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-7236
What to do
Remove chai-as-legit 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-legitpkg:npm/chai-as-legitOther 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-legit' version 7.2.3 contains malicious code. This is identified as a malicious package rather than a traditional software vulnerability. No CVSS score or detailed technical exploit information is available. There are no known exploits in the wild reported at this time.