Skip to main content
MalwarePublished Updated

chai-plus (npm) · Malicious Code

Affects chai-plusSource GCVE Database

0

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

Data as of 7 Sep 2026, 17:55 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14533

What to do

Remove chai-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-plusAffected
  • 6.2.3 – 7.0.0
5 affected builds
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-plus' contains malicious code that automatically executes upon requiring the module. It runs a hidden command to globally install and execute a malicious package from a dynamic DNS domain over plain HTTP, unrelated to its advertised functionality. This behavior compromises any system where the package is installed, potentially giving attackers full control. Removal of the package does not guarantee complete remediation due to possible persistent backdoors. The package name mimics a popular library, increasing the risk of inadvertent installation.

References

Community reviews

Loading reviews…