Skip to main content
MalwarePublished Updated

prettier_v2 (npm) · Malicious Code

Affects prettier_v2Source GCVE Database

0

Malicious package : remove prettier_v2 and rotate any secrets on hosts that installed it.

Data as of 12 Sep 2026, 19:32 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5846

What to do

Remove prettier_v2 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
npmprettier_v2Affected
  • =3.8.5
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_v2' npm package is identified as a malicious typosquatting package mimicking the legitimate 'prettier' formatter. It contains obfuscated code using base64 decoding patterns that may hide malicious payloads. Installation of this package can lead to full system compromise, requiring immediate secret and key rotation. Removal of the package alone may not fully remediate the infection due to potential persistence of malicious software.

References

Community reviews

Loading reviews…