Skip to main content

Malicious code in prettier-logger (npm)

0
Critical
Published: 07/06/2026 (07/06/2026, 18:56:35 UTC)
Source: GCVE Database
Product: prettier-logger

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.

Affected software

npmghsa
prettier-logger
Affected versions
=0.1.6=0.1.5=0.1.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 20:46:49 UTC

Technical Analysis

The 'prettier-logger' npm package versions 0.1.4, 0.1.5, and 0.1.6 have been identified as containing malicious code. Installation or execution of this package results in a full compromise of the affected computer, potentially allowing an attacker to gain complete control. Due to the severity of the compromise, all sensitive credentials on the affected system should be rotated from a secure environment. The package removal does not guarantee the eradication of all malicious artifacts introduced.

Potential Impact

Systems with the affected versions of 'prettier-logger' installed or running are fully compromised. Attackers may have gained complete control over the system, risking exposure and theft of secrets, keys, and other sensitive data. The compromise is severe enough that remediation requires credential rotation from a different machine and cannot rely solely on package removal.

Mitigation Recommendations

Remove the 'prettier-logger' package immediately. Rotate all secrets and keys stored on the compromised system from a separate, trusted machine. Because the system is considered fully compromised, additional forensic analysis and remediation may be necessary to ensure all malicious components are removed.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6866
Osv Schema Version
1.7.4
Aliases
["GHSA-6wq6-hvcw-xmcx"]
Ecosystems
["npm"]

Threat ID: 6a4c342827e9c797195f9d37

Added to database: 07/06/2026, 23:03:04 UTC

Last enriched: 09/12/2026, 20:46:49 UTC

Last updated: 09/12/2026, 20:46:49 UTC

Views: 62

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses