chai-guid (npm) · Malicious Code
Affects chai-guidSource GCVE Database
Malicious package : remove chai-guid and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 09:23 UTC
Malicious package
Published to npm · OSV MAL-2026-5903
What to do
Remove chai-guid 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-guid | 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-guid version 1.1.5 contains malicious code that impersonates legitimate packages and executes attacker-controlled JavaScript code with full Node.js privileges when its middleware is invoked. It fetches and runs code from an anonymous JSON paste service, enabling remote code execution on the consumer's machine.