Malicious code in path-internal-util (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (aaba59a63a7a6f3dfc734a55082dff17dbf357f41b2a09ef0c87f73d046088e1) On require(), path.js executes an IIFE that calls loadTokenData(), which fetches a base64-obfuscated URL (decoding to https://www.jsonkeeper.com/b/CWOV9), parses the JSON response, and passes data.content directly to eval(). The remote paste is mutable by whoever controls the jsonkeeper entry, so any installer that imports the package executes arbitrary attacker-controlled JavaScript in-process at import time. The package name impersonates Node's built-in `path` module and the README claims to be 'an exact copy of the NodeJS path module', increasing the chance of accidental installation by developers seeking a path polyfill. ## Source: ghsa-malware (256c0d663976ed956c5fde6343acb9a6e640443a0091911fd4a2a57ab49e14f3) 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. ## Source: ossf-package-analysis (db91c8a40ff204e2aa98c594413d69b624d93a4ac51ea09fc00b1d3f63b8e462) The OpenSSF Package Analysis project identified 'path-internal-util' @ 1.0.1 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior.
AI Analysis
Technical Summary
The 'path-internal-util' npm package (versions >=1.0.0 <=1.0.2) contains malicious code that executes arbitrary JavaScript fetched from a remote, attacker-controlled URL at import time. The package masquerades as the legitimate Node.js 'path' module, increasing the likelihood of accidental installation. The remote code is base64-obfuscated and mutable, allowing attackers to execute arbitrary commands on any system importing this package. This results in a full compromise of the affected system.
Potential Impact
Systems with this package installed or running are considered fully compromised. Attackers gain the ability to execute arbitrary code within the context of the importing process, potentially leading to theft of secrets, keys, and full system control. Removal of the package alone may not eliminate all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'path-internal-util' package versions 1.0.0 through 1.0.2 is required. All secrets and keys on affected systems should be rotated from a secure, uncompromised environment. Due to the potential for persistent compromise, a full system investigation and remediation may be necessary.
Malicious code in path-internal-util (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (aaba59a63a7a6f3dfc734a55082dff17dbf357f41b2a09ef0c87f73d046088e1) On require(), path.js executes an IIFE that calls loadTokenData(), which fetches a base64-obfuscated URL (decoding to https://www.jsonkeeper.com/b/CWOV9), parses the JSON response, and passes data.content directly to eval(). The remote paste is mutable by whoever controls the jsonkeeper entry, so any installer that imports the package executes arbitrary attacker-controlled JavaScript in-process at import time. The package name impersonates Node's built-in `path` module and the README claims to be 'an exact copy of the NodeJS path module', increasing the chance of accidental installation by developers seeking a path polyfill. ## Source: ghsa-malware (256c0d663976ed956c5fde6343acb9a6e640443a0091911fd4a2a57ab49e14f3) 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. ## Source: ossf-package-analysis (db91c8a40ff204e2aa98c594413d69b624d93a4ac51ea09fc00b1d3f63b8e462) The OpenSSF Package Analysis project identified 'path-internal-util' @ 1.0.1 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior.
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-internal-util' npm package (versions >=1.0.0 <=1.0.2) contains malicious code that executes arbitrary JavaScript fetched from a remote, attacker-controlled URL at import time. The package masquerades as the legitimate Node.js 'path' module, increasing the likelihood of accidental installation. The remote code is base64-obfuscated and mutable, allowing attackers to execute arbitrary commands on any system importing this package. This results in a full compromise of the affected system.
Potential Impact
Systems with this package installed or running are considered fully compromised. Attackers gain the ability to execute arbitrary code within the context of the importing process, potentially leading to theft of secrets, keys, and full system control. Removal of the package alone may not eliminate all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the 'path-internal-util' package versions 1.0.0 through 1.0.2 is required. All secrets and keys on affected systems should be rotated from a secure, uncompromised environment. Due to the potential for persistent compromise, a full system investigation and remediation may be necessary.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-3312
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-c267-q765-387r"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed2627e9c79719934585
Added to database: 06/29/2026, 22:09:42 UTC
Last enriched: 07/11/2026, 12:35:59 UTC
Last updated: 07/27/2026, 10:24:53 UTC
Views: 16
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.
External Links
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.