Skip to main content
MalwarePublished Updated

chai-as-testkit (npm) · Malicious Code

Affects chai-as-testkitSource GCVE Database

0

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

Data as of 26 Oct 2026, 16:18 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14371

What to do

Remove chai-as-testkit 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-testkitAffected
  • =2.3.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-as-testkit' version 2.3.5 is a malicious typosquatting package that impersonates the legitimate 'pino' logging library. It contains a large obfuscated payload that executes attacker-controlled code immediately upon import, enabling remote code execution within developer or CI Node.js environments. The package metadata misleads users by referencing vulnerability management and using unrelated author information. This is not a legitimate logging library but a vehicle for install-time code execution.

References

Community reviews

Loading reviews…