path-extend (npm) · Malicious Code
Affects path-extendSource GCVE Database
Rated by Threat Radar
Data as of 25 Oct 2026, 04:27 UTC
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmpath-extend | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Remove the 'path-extend' package immediately from all systems. Rotate all secrets and keys stored on affected machines from a separate, trusted environment. Because the attacker may have established persistent control, consider full system audits and potential reimaging.
Description
The npm package 'path-extend' is a malicious typosquatting package that mimics Node.js's built-in 'path' module. It injects code that fetches attacker-controlled JavaScript from an anonymous JSON paste service and executes it via eval(), allowing dynamic remote code execution. Installing or requiring this package results in running arbitrary code controlled by the attacker, potentially compromising the entire system and exposing all stored secrets and keys.