path-addon (npm) · Malicious Code
Affects path-addonSource GCVE Database
Malicious package : remove path-addon and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 11:38 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmpath-addon | 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 '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.