Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in node-path-addon (npm)

0
High
Published: 07/13/2026 (07/13/2026, 17:37:21 UTC)
Source: GCVE Database
Product: node-path-addon

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5dbc52a88818bccd5602eb556ea4bf089dac66c44a2bb1ecbd6fddd6723e9d1d) node-path-addon presents itself as an extension of the Node.js built-in 'path' module. Its main entry (path.js) delegates by executing require('path-addon-extend') at module load, and package.json declares that dependency at wildcard version '*', so importing node-path-addon unconditionally resolves and executes the latest published version of path-addon-extend — whose contents are controlled by whoever owns that separate npm name. The shim also imports the 'https' module without using it, and the README instructs users to run 'npm install --save path-addon' rather than the actual published name 'node-path-addon', a naming mismatch consistent with typosquat lure behavior. The package itself contains no direct exfiltration or shell execution, but the wildcard-pinned require on import is a loader that grants an external, mutable dependency arbitrary code execution in the consumer's process on every install and require. ## Source: ghsa-malware (6b9d31ad60810b0ec7e48b0a716595cc64021531ef9711fab0dd6b7ccfb2cd07) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
node-path-addon
Affected versions
=1.0.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/14/2026, 09:59:56 UTC

Technical Analysis

node-path-addon is a malicious npm package that pretends to extend the Node.js 'path' module. Its main module requires 'path-addon-extend' at a wildcard version '*', causing the latest version of that external package to be loaded and executed. Since the external dependency is mutable and controlled by a third party, this design allows arbitrary code execution in the consumer's process whenever node-path-addon is installed or required. The package also imports 'https' without use and misleads users with README instructions to install a similarly named package, consistent with typosquatting tactics. No direct payload such as exfiltration or shell execution is present in node-path-addon itself, but the indirect code execution risk is significant.

Potential Impact

Consumers of node-path-addon version 1.0.8 are at risk of arbitrary code execution due to the wildcard dependency on path-addon-extend, which can be updated by an attacker at any time. This can lead to compromise of the environment where the package is installed. There are no known exploits in the wild currently. The malicious package does not itself contain direct exfiltration or shell execution code but enables execution of arbitrary code via the external dependency.

Mitigation Recommendations

Avoid using node-path-addon entirely, especially version 1.0.8, as it is a malicious typosquatting package. There is no official fix or patch available. Users should verify package names carefully before installation and rely on trusted sources. Remove node-path-addon from any projects and replace with the legitimate Node.js 'path' module or a trusted alternative. Monitor dependencies for typosquatting or suspicious wildcard dependencies.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-10463
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a55ffb868715ace432facc0

Added to database: 07/14/2026, 09:22:00 UTC

Last enriched: 07/14/2026, 09:59:56 UTC

Last updated: 07/25/2026, 11:16:29 UTC

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses