Malicious code in pathfix (npm)
The npm package 'pathfix' versions 3.0.10, 3.0.11, and 3.0.12 contains malicious code that executes remote code on the installer's machine. It masquerades as a Stylus port of normalize.css but includes a backdoor that fetches and evaluates JavaScript from a remote URL with full require access. This leads to full system compromise upon installation or use. Immediate removal and secret/key rotation are strongly advised.
AI Analysis
Technical Summary
The 'pathfix' npm package (versions 3.0.10, 3.0.11, and 3.0.12) is a malicious package that pretends to be related to normalize.css but actually ships with a remote code execution gadget. On module load, it calls initPlugin(), which uses the 'request' library to fetch a configurable URL and evaluates the '.cookie' field of the response as JavaScript with full require access, allowing arbitrary code execution on the host machine. This function is also the main export, so any caller passing a URL triggers this eval path. Although the default URL is blank, the gadget runs automatically on require(), effectively compromising any system that installs or runs this package. The package metadata is deceptive, and the dependency list is unrelated to its stated purpose, aiming to increase installs. Systems with this package installed should be considered fully compromised.
Potential Impact
Full remote code execution on the installer's machine, leading to complete system compromise. Any secrets or keys stored on the compromised system may be exposed and must be rotated. Removing the package alone may not eliminate all malicious artifacts due to the full control potentially granted to attackers.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'pathfix' package versions 3.0.10, 3.0.11, and 3.0.12 is required. All secrets and keys stored on affected systems should be rotated from a secure, uncompromised environment. Treat any system with this package installed as fully compromised and perform thorough incident response and remediation.
Malicious code in pathfix (npm)
Description
The npm package 'pathfix' versions 3.0.10, 3.0.11, and 3.0.12 contains malicious code that executes remote code on the installer's machine. It masquerades as a Stylus port of normalize.css but includes a backdoor that fetches and evaluates JavaScript from a remote URL with full require access. This leads to full system compromise upon installation or use. Immediate removal and secret/key rotation are strongly advised.
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 'pathfix' npm package (versions 3.0.10, 3.0.11, and 3.0.12) is a malicious package that pretends to be related to normalize.css but actually ships with a remote code execution gadget. On module load, it calls initPlugin(), which uses the 'request' library to fetch a configurable URL and evaluates the '.cookie' field of the response as JavaScript with full require access, allowing arbitrary code execution on the host machine. This function is also the main export, so any caller passing a URL triggers this eval path. Although the default URL is blank, the gadget runs automatically on require(), effectively compromising any system that installs or runs this package. The package metadata is deceptive, and the dependency list is unrelated to its stated purpose, aiming to increase installs. Systems with this package installed should be considered fully compromised.
Potential Impact
Full remote code execution on the installer's machine, leading to complete system compromise. Any secrets or keys stored on the compromised system may be exposed and must be rotated. Removing the package alone may not eliminate all malicious artifacts due to the full control potentially granted to attackers.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'pathfix' package versions 3.0.10, 3.0.11, and 3.0.12 is required. All secrets and keys stored on affected systems should be rotated from a secure, uncompromised environment. Treat any system with this package installed as fully compromised and perform thorough incident response and remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5989
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-623x-x2wh-q9xq"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef7de27e9c7971902639f
Added to database: 06/26/2026, 22:06:22 UTC
Last enriched: 06/26/2026, 22:41:34 UTC
Last updated: 07/28/2026, 01:19:06 UTC
Views: 28
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.
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.