Skip to main content
MalwarePublished Updated

prettier-logger (npm) · Malicious Code

Affects prettier-loggerSource GCVE Database

0

Malicious package : remove prettier-logger and rotate any secrets on hosts that installed it.

Data as of 12 Sep 2026, 20:46 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6866

What to do

Remove prettier-logger 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-loggerAffected
  • =0.1.6
  • =0.1.5
  • =0.1.4
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 'prettier-logger' versions 0.1.4, 0.1.5, and 0.1.6 contains malicious code. Any system with this package installed or running is considered fully compromised. Secrets and keys stored on affected systems should be rotated immediately from a different, trusted machine. Removing the package alone may not eliminate all malicious software introduced by it.

References

Community reviews

Loading reviews…