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 path-internal-util (npm)

0
Critical
Published: 05/01/2026 (05/01/2026, 07:11:51 UTC)
Source: GCVE Database
Product: path-internal-util

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

npmghsa
path-internal-util
Affected versions
=1.0.1=1.0.2

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/11/2026, 12:35:59 UTC

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.

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-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 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