Malicious code in prettier_v1 (npm)
The 'prettier_v1' npm package is a typosquatting malicious package impersonating the legitimate 'prettier' formatter. It contains obfuscated code using base64 decoding in a file named 'mirror.js', which is suspicious and indicative of hidden payloads. The package is considered fully compromising any system where it is installed or running. Immediate removal and secret/key rotation are advised, though full remediation cannot be guaranteed due to potential persistent compromise.
AI Analysis
Technical Summary
The 'prettier_v1' package is a typosquatting npm package mimicking the popular 'prettier' formatter. It includes a base64 decoding operation in 'lib/mirror.js' that likely hides malicious payloads. Although the exact impact of the decoded content was not fully traced, the presence of this obfuscation combined with the typosquatting nature strongly indicates malicious intent. According to the ghsa-malware source, any system with this package installed should be considered fully compromised, requiring secret and key rotation and package removal. The package version explicitly affected is 3.8.5.
Potential Impact
Systems with 'prettier_v1' version 3.8.5 installed or running are considered fully compromised. Attackers may have gained full control, risking exposure of all stored secrets and keys. Removing the package alone may not eliminate all malicious components due to potential persistent backdoors or additional malware installed by the package.
Mitigation Recommendations
Remove the 'prettier_v1' package immediately from all affected systems. Rotate all secrets and keys from a separate, uncompromised device. Due to the potential for persistent compromise, conduct a thorough investigation and consider full system remediation. No official patch or fix is available; the best mitigation is removal and secret rotation.
Malicious code in prettier_v1 (npm)
Description
The 'prettier_v1' npm package is a typosquatting malicious package impersonating the legitimate 'prettier' formatter. It contains obfuscated code using base64 decoding in a file named 'mirror.js', which is suspicious and indicative of hidden payloads. The package is considered fully compromising any system where it is installed or running. Immediate removal and secret/key rotation are advised, though full remediation cannot be guaranteed due to potential persistent compromise.
Affected software
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
Technical Analysis
The 'prettier_v1' package is a typosquatting npm package mimicking the popular 'prettier' formatter. It includes a base64 decoding operation in 'lib/mirror.js' that likely hides malicious payloads. Although the exact impact of the decoded content was not fully traced, the presence of this obfuscation combined with the typosquatting nature strongly indicates malicious intent. According to the ghsa-malware source, any system with this package installed should be considered fully compromised, requiring secret and key rotation and package removal. The package version explicitly affected is 3.8.5.
Potential Impact
Systems with 'prettier_v1' version 3.8.5 installed or running are considered fully compromised. Attackers may have gained full control, risking exposure of all stored secrets and keys. Removing the package alone may not eliminate all malicious components due to potential persistent backdoors or additional malware installed by the package.
Mitigation Recommendations
Remove the 'prettier_v1' package immediately from all affected systems. Rotate all secrets and keys from a separate, uncompromised device. Due to the potential for persistent compromise, conduct a thorough investigation and consider full system remediation. No official patch or fix is available; the best mitigation is removal and secret rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5845
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-q835-5j9v-22qg"]
- Ecosystems
- ["npm"]
Threat ID: 6a4f6c3d68715ace431589c1
Added to database: 07/09/2026, 09:39:09 UTC
Last enriched: 09/12/2026, 19:47:12 UTC
Last updated: 09/12/2026, 19:47:12 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.