prettier_v1 (npm) · Malicious Code
Affects prettier_v1Source GCVE Database
Malicious package : remove prettier_v1 and rotate any secrets on hosts that installed it.
Data as of 12 Sep 2026, 19:47 UTC
Malicious package
Published to npm · OSV MAL-2026-5845
What to do
Remove prettier_v1 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 |
|---|---|---|
| npmprettier_v1 | 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 'prettier_v1' npm package is a typosquatting malicious package impersonating the legitimate 'prettier' formatter. It contains obfuscated code using base64 decoding in a file named 'mirror.js', which is suspicious and indicative of hidden payloads. The package is considered fully compromising any system where it is installed or running. Immediate removal and secret/key rotation are advised, though full remediation cannot be guaranteed due to potential persistent compromise.