Skip to main content
MalwarePublished Updated

chai-as-legit (npm) · Malicious Code

Affects chai-as-legitSource GCVE Database

0

Malicious package : remove chai-as-legit and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 09:08 UTC

Classification

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

ProductAffectedFixed in
npmchai-as-legitpkg:npm/chai-as-legitOther threatsAffected
  • =7.2.3
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.

References

Community reviews

Loading reviews…