Malicious code in path-addon-extend (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b383636076e2701a372675c281ee82463d97529ed7d8db027276aa8a8b68b966) path-addon-extend presents itself as a copy of Node's built-in `path` module. On module load, path.js issues an HTTPS GET to a base64-obscured URL that decodes to https://json.extendsclass.com/bin/567893d4e220 and passes the response's `.content` field directly to `eval()`. The destination is a public JSON-bin service whose contents can be mutated at any time by the publisher (or anyone in possession of the bin token), giving arbitrary remote code execution in any process that requires this package. The endpoint is stored as a base64 literal decoded via `atob(...)` at call time rather than as a plain string, concealing the destination in a package that otherwise mirrors the Node core `path` module. ## Source: ghsa-malware (269b863a397d80c2aab7accda81b048146ef026773dd5094594c73a228a2f7ea) 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.
AI Analysis
Technical Summary
The path-addon-extend package for npm pretends to be the Node.js core path module but contains malicious behavior. Upon loading, it decodes a base64 string to obtain a URL pointing to a public JSON-bin service. It fetches data from this URL and executes the content field using eval(), which allows arbitrary code execution in any process that imports this package. Because the JSON-bin is publicly mutable by anyone with the token, an attacker can change the code executed at runtime, posing a severe remote code execution risk. This behavior is concealed by storing the URL as a base64-encoded string decoded at runtime.
Potential Impact
Any application or process that installs and requires path-addon-extend versions 1.0.7 or 1.0.8 is vulnerable to arbitrary remote code execution. The malicious code is fetched dynamically from a public JSON-bin service, which can be altered by an attacker to execute arbitrary commands or payloads within the context of the affected process. This can lead to full system compromise depending on the privileges of the running process.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove and replace path-addon-extend versions 1.0.7 and 1.0.8 from their projects. Avoid using this package entirely due to its malicious nature. Monitor dependencies carefully and verify package authenticity before installation.
Malicious code in path-addon-extend (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b383636076e2701a372675c281ee82463d97529ed7d8db027276aa8a8b68b966) path-addon-extend presents itself as a copy of Node's built-in `path` module. On module load, path.js issues an HTTPS GET to a base64-obscured URL that decodes to https://json.extendsclass.com/bin/567893d4e220 and passes the response's `.content` field directly to `eval()`. The destination is a public JSON-bin service whose contents can be mutated at any time by the publisher (or anyone in possession of the bin token), giving arbitrary remote code execution in any process that requires this package. The endpoint is stored as a base64 literal decoded via `atob(...)` at call time rather than as a plain string, concealing the destination in a package that otherwise mirrors the Node core `path` module. ## Source: ghsa-malware (269b863a397d80c2aab7accda81b048146ef026773dd5094594c73a228a2f7ea) 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
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
Technical Analysis
The path-addon-extend package for npm pretends to be the Node.js core path module but contains malicious behavior. Upon loading, it decodes a base64 string to obtain a URL pointing to a public JSON-bin service. It fetches data from this URL and executes the content field using eval(), which allows arbitrary code execution in any process that imports this package. Because the JSON-bin is publicly mutable by anyone with the token, an attacker can change the code executed at runtime, posing a severe remote code execution risk. This behavior is concealed by storing the URL as a base64-encoded string decoded at runtime.
Potential Impact
Any application or process that installs and requires path-addon-extend versions 1.0.7 or 1.0.8 is vulnerable to arbitrary remote code execution. The malicious code is fetched dynamically from a public JSON-bin service, which can be altered by an attacker to execute arbitrary commands or payloads within the context of the affected process. This can lead to full system compromise depending on the privileges of the running process.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove and replace path-addon-extend versions 1.0.7 and 1.0.8 from their projects. Avoid using this package entirely due to its malicious nature. Monitor dependencies carefully and verify package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10420
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ad9268715ace438f04ff
Added to database: 07/13/2026, 09:19:14 UTC
Last enriched: 07/13/2026, 09:22:38 UTC
Last updated: 07/27/2026, 15:56:41 UTC
Views: 34
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.