Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in pathfix (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 04:18:57 UTC)
Source: GCVE Database
Product: pathfix

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

npmghsa
pathfix
Affected versions
=3.0.10=3.0.11=3.0.12

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: 06/26/2026, 22:41:34 UTC

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.

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-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 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