Skip to main content
MalwarePublished

chai-assertions-plus (npm) · Malicious Code

Affects chai-assertions-plusSource GCVE Database

0

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

Data as of 5 Aug 2026, 17:06 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12349

What to do

Remove chai-assertions-plus 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-assertions-plusAffected
  • =6.0.6
  • =6.0.5
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-assertions-plus, published as a Chai assertions extension, contains malicious code that executes arbitrary code on the installer's machine. The package's code replaces the global process object with a fake one containing base64-encoded data that reconstructs a URL and HTTP header. At runtime, it fetches code from this URL and executes it using the Node.js require function. This behavior occurs on every import of the module, indicating deliberate deception. Versions 6.0.5 and 6.0.6 are affected. No CVSS score is available.

References

Community reviews

Loading reviews…