Skip to main content
VulnerabilityPublished Updated

path-extend (npm) · Malicious Code

Affects path-extendSource GCVE Database

0
Severity
High

Rated by Threat Radar

Data as of 25 Oct 2026, 04:27 UTC

What to do

Affected software

ProductAffectedFixed in
npmpath-extendAffected
  • =1.0.6
  • =1.0.11
  • =1.0.10
  • =1.0.12
  • =1.0.13
  • =1.0.0
  • =1.0.1
  • =1.0.2
  • =1.0.3
  • =1.0.4
  • =1.0.5
  • =1.0.7
  • =1.0.8
  • =1.0.9
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.

References

Community reviews

Loading reviews…