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
- resolvedcritical
Malicious code in sme-rko-finance-front-operations-feed-models (npm)
The npm package sme-rko-finance-front-operations-feed-models contained malicious code that downloads and executes attacker-controlled native binaries from remote servers upon package load. The malware uses obfuscation techniques including fragmented string arrays, platform-specific endpoints, and DNS TXT record fallbacks to evade detection.
npmCompromised package - resolvedcritical
Malicious code in modern-localization (npm)
The npm package modern-localization contained malicious code that fetches and executes arbitrary JavaScript from a remote jsonbin.io endpoint on server-side require, with no integrity verification. The payload is executed with full Node.js privileges via Function() or child_process.fork().
npmCompromised package - resolvedcritical
Malicious code in sme-rko-finance-front-operations-tax (npm)
The npm package sme-rko-finance-front-operations-tax contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure on require. The package was identified and reported by OpenSSF's malicious-packages project.
npmCompromised package - resolvedcritical
Malicious code in localization-fixer (npm)
The npm package localization-fixer contained malicious code that fetches and executes arbitrary JavaScript from attacker-controlled jsonbin.io endpoints on package require, granting full Node.js capabilities to remote payloads.
npmCompromised package