Skip to main content

Malicious code in path-extend (npm)

0
Unknown
Published: 04/14/2026 (04/14/2026, 09:46:58 UTC)
Source: GCVE Database
Product: path-extend

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (429c0dbb9c8395a6c87ffcf5e6ebe03c6cf6568b4bf205afa933b7d6a49aa578) On require(), path.js runs an IIFE that calls a loader which fetches a base64-hidden URL (https://www.jsonkeeper.com/b/XTTBX) from jsonkeeper.com — an anonymous, mutable JSON paste host — and passes the returned `data.content` to eval(). A second loader fetches https://www.jsonkeeper.com/b/P0CND for the same purpose. Variable names (`randomStringRe`, `tokenStringRe`) and base64-encoded URLs are obfuscation to evade scanning. The package name typosquats Node's built-in `path` module; package.json lists an empty author field and a generic 'Node.js path module' description, while path.js is otherwise a verbatim copy of Node core's path.js with the malicious fetch+eval block injected. Any installer that require()s this package runs attacker-controlled JavaScript in their Node process, with content the attacker can change at any time by editing the paste. ## Source: ghsa-malware (71f280ff0423062f06e45d9a15b65e9dad0b791098bfcc9c5584f6084d28d300) 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 (6daf896311438eb762b70471958c7f04895813b4c057c34d6c2ab7c3728efd89) The OpenSSF Package Analysis project identified 'path-extend' @ 1.0.11 (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-extend
Affected versions
=1.0.6=1.0.11=1.0.10=1.0.12=1.0.13=1.0.0=1.0.1=1.0.2=1.0.3=1.0.4=1.0.5=1.0.7=1.0.8=1.0.9

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-2929
Osv Schema Version
1.7.4
Aliases
["GHSA-qvmc-2hcj-8h4f"]
Ecosystems
["npm"]

Threat ID: 6a96f318acd9273b49e49532

Added to database: 09/01/2026, 15:45:28 UTC

Last updated: 09/10/2026, 07:33:29 UTC

Views: 6

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

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