chai-as-buffered (npm) · Malicious Code
Affects chai-as-bufferedSource GCVE Database
Malicious package : remove chai-as-buffered and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-10041
What to do
Remove chai-as-buffered 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
| Product | Affected | Fixed in |
|---|---|---|
| npmchai-as-buffered | Affected
| 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-buffered@3.7.24 is a malicious typosquat of chai-as-promised. It impersonates the pino logger and contains code that downloads and executes attacker-controlled JavaScript code with full require access on the host machine. This allows arbitrary code execution whenever the package is loaded.