Skip to main content
MalwarePublished

chai-as-soul (npm) · Malicious Code

Affects chai-as-soulSource GCVE Database

0

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

Data as of 21 Aug 2026, 14:43 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14343

What to do

Remove chai-as-soul 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-soulAffected
  • =2.3.5
  • =2.3.6
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-soul versions 2.3.5 and 2.3.6 is a malicious typosquatting package that impersonates the legitimate pino package. It contains code that, upon being required, decodes a hardcoded URL and sends the entire environment variables of the host process to an attacker-controlled endpoint. It then executes arbitrary JavaScript code received from that endpoint with full module access, enabling remote code execution and exfiltration of sensitive environment data such as cloud tokens and secrets.

References

Community reviews

Loading reviews…