Malware in prettier_v2
Malware discovered in the npm package prettier_v2. Installation results in full system compromise with potential for complete control by external actors.
- Disclosed
- Last updated
- Blast radius
- Any system with prettier_v2 installed; full system compromise possible
- Ecosystems
- Attack vectors
- Affected entities
- prettier_v2npm package
A malicious version of the npm package prettier_v2 has been identified containing malware. According to the GitHub Advisory (GHSA-cmfj-34j9-8w66), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the compromise.\n\nThis represents a critical supply chain attack affecting npm users who installed the malicious version of prettier_v2.
Indicators of compromise
- Packages
- prettier_v2
Remediation
- Immediately isolate any computer with prettier_v2 installed from the network
- Rotate all secrets, API keys, and credentials from a different, uncompromised computer
- Remove the prettier_v2 package from all affected systems
- Perform a full security audit and malware scan on affected systems
- Review system logs and access logs for signs of unauthorized activity during the period the package was installed
- Consider full system reimaging if full compromise is suspected
Sources
- GitHub Advisory GHSA-cmfj-34j9-8w66 · GitHub Advisory Database
Cite this entry
"Malware in prettier_v2." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 15, 2026; last updated June 16, 2026. https://supplychainattack.org/incident/malware-in-prettier-v2-80pqlg
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malicious code in @wbnr/design (npm)
The npm package @wbnr/design version 99.3.0 was identified as malicious by the OpenSSF Package Analysis project. The malicious code communicates with a domain associated with malicious activity.
npmCompromised package - containedcritical
Malware in react-fast-refresh-helper
Malware was discovered in the npm package react-fast-refresh-helper. Systems with this package installed are considered fully compromised and require immediate remediation.
npmCompromised package - containedcritical
Malware in n8n-nodes-trust-me-im-totally-safe
Malware was discovered in the npm package n8n-nodes-trust-me-im-totally-safe, resulting in full system compromise for any computer with the package installed or running. All secrets and keys on affected systems should be rotated immediately from a different computer.
npmCompromised package - activecritical
Malware in litespeed-cache
Malware discovered in the npm package litespeed-cache. The package grants full system compromise to attackers, requiring immediate removal and credential rotation from a clean system.
npmCompromised package