Skip to main content
MalwarePublished Updated

chai-as-rendered (npm) · Malicious Code

Affects chai-as-renderedSource GCVE Database

0

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

Data as of 26 Oct 2026, 16:15 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12348

What to do

Remove chai-as-rendered 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-renderedAffected
  • =1.2.0
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-rendered' is a typosquat of 'chai-as-promised' and contains malicious code. It spawns a detached child process that fetches and executes a remote JSON payload, giving the attacker full require access on the host system. The package uses base64 obfuscation to conceal the remote URL and request headers. The package name and keywords impersonate the legitimate 'pino' package to deceive users.

References

Community reviews

Loading reviews…