pathfix (npm) · Malicious Code
Affects pathfixSource GCVE Database
Malicious package : remove pathfix and rotate any secrets on hosts that installed it.
Data as of 26 Jun 2026, 22:41 UTC
Malicious package
Published to npm · OSV MAL-2026-5989
What to do
Remove pathfix from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmpathfix | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.