Skip to main content
MalwarePublished Updated

path-addon (npm) · Malicious Code

Affects path-addonSource GCVE Database

0

Malicious package : remove path-addon and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 11:38 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-3311

What to do

Remove path-addon 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

ProductAffectedFixed in
npmpath-addonAffected
  • =1.0.4
  • =1.0.6
  • =1.0.5
  • =1.0.7
  • =1.0.2
  • =1.0.3
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 'path-addon' impersonates the Node.js core 'path' module but contains malicious code that fetches and executes remote JavaScript code at module load time. This behavior allows an attacker to run arbitrary code in any process that imports this package. The package uses obfuscation techniques such as base64 encoding of the remote URL to evade detection. Multiple versions of 'path-addon' are affected, and the package is identified as malicious by the OpenSSF Package Analysis project.

References

Community reviews

Loading reviews…