Skip to main content
MalwarePublished Updated

chai-as-thread (npm) · Malicious Code

Affects chai-as-threadSource GCVE Database

0

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

Data as of 26 Oct 2026, 15:56 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10048

What to do

Remove chai-as-thread 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-threadAffected
  • =7.0.8
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-thread' version 7.0.8 is a malicious typosquatting package that executes remote code. Upon requiring the package, it spawns a detached Node.js child process that runs a script which fetches and executes arbitrary JavaScript code from a remote URL. The package name mimics a legitimate package, and its README impersonates another project to lure victims. This behavior enables remote code execution with full require access.

References

Community reviews

Loading reviews…