chai-as-precision (npm) · Malicious Code
Affects chai-as-precisionSource GCVE Database
Malicious package : remove chai-as-precision and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:53 UTC
Malicious package
Published to npm · OSV MAL-2026-10219
What to do
Remove chai-as-precision 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-precision | 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-precision' version 7.0.6 contains malicious code that masquerades as a different package, 'pino'. When used, it spawns a detached child process that fetches and executes attacker-controlled JavaScript code from an external URL, allowing arbitrary code execution with full require access on the host. This behavior is hidden by suppressing output and using base64-encoded strings to obscure the malicious payload's origin and execution. There is no known patch or fix available at this time.