Malicious code in normalize-path-seq (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (048493f47bc6a8b0a61c93d14a9bfbbe5edd77baff2d2423870e3cc8b7099b0a) On require, index.js invokes initPlugin() at the module top level, which performs an HTTPS GET to https://jsonkeeper.com/b/VL3WY, parses the response JSON, and passes the 'cookie' field to new Function.constructor('require', body)(require). This compiles attacker-controlled JavaScript and invokes it with the installer's `require`, granting arbitrary code execution with full Node.js privileges on every import. The payload host (jsonkeeper.com) is an anonymous paste service whose contents are mutable, so the executed code can change at any time without a package update. The package is also a typosquat of the widely-installed `normalize-path`: it impersonates the original author (Jon Schlinkert) in package.json and mimics the normalizePath API surface to lure consumers who mistype the dependency name. ## Source: ghsa-malware (72df791955fa3a6c17ed65991ceb827e6f5c82846699195e5c809c8000337a8a) 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 'normalize-path-seq' npm package (version 3.8.9) contains malicious code that, upon being required, performs an HTTPS GET request to a mutable external paste service URL. It retrieves JSON data containing a 'cookie' field, which is then executed as JavaScript code using the Function constructor with access to the installer's require function. This results in arbitrary code execution with full Node.js privileges on every import. The package is a typosquat of the legitimate 'normalize-path' package, mimicking its API and author metadata to deceive users. Because the payload is hosted on a mutable anonymous paste service, the malicious code can change dynamically without updating the package itself. This behavior effectively compromises any system that installs or runs this package.
Potential Impact
Any system with 'normalize-path-seq' version 3.8.9 installed or running is fully compromised due to arbitrary code execution with full Node.js privileges. Attackers can execute any code, potentially stealing secrets, installing backdoors, or performing other malicious activities. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately. Simply removing the package does not guarantee removal of all malicious software introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The recommended mitigation is to immediately remove 'normalize-path-seq' version 3.8.9 from all systems. Treat any affected system as fully compromised and rotate all secrets and keys from a separate, trusted environment. Monitor for any signs of persistent malicious activity and perform a thorough incident response to identify and remediate any backdoors or additional malware.
Malicious code in normalize-path-seq (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (048493f47bc6a8b0a61c93d14a9bfbbe5edd77baff2d2423870e3cc8b7099b0a) On require, index.js invokes initPlugin() at the module top level, which performs an HTTPS GET to https://jsonkeeper.com/b/VL3WY, parses the response JSON, and passes the 'cookie' field to new Function.constructor('require', body)(require). This compiles attacker-controlled JavaScript and invokes it with the installer's `require`, granting arbitrary code execution with full Node.js privileges on every import. The payload host (jsonkeeper.com) is an anonymous paste service whose contents are mutable, so the executed code can change at any time without a package update. The package is also a typosquat of the widely-installed `normalize-path`: it impersonates the original author (Jon Schlinkert) in package.json and mimics the normalizePath API surface to lure consumers who mistype the dependency name. ## Source: ghsa-malware (72df791955fa3a6c17ed65991ceb827e6f5c82846699195e5c809c8000337a8a) 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 'normalize-path-seq' npm package (version 3.8.9) contains malicious code that, upon being required, performs an HTTPS GET request to a mutable external paste service URL. It retrieves JSON data containing a 'cookie' field, which is then executed as JavaScript code using the Function constructor with access to the installer's require function. This results in arbitrary code execution with full Node.js privileges on every import. The package is a typosquat of the legitimate 'normalize-path' package, mimicking its API and author metadata to deceive users. Because the payload is hosted on a mutable anonymous paste service, the malicious code can change dynamically without updating the package itself. This behavior effectively compromises any system that installs or runs this package.
Potential Impact
Any system with 'normalize-path-seq' version 3.8.9 installed or running is fully compromised due to arbitrary code execution with full Node.js privileges. Attackers can execute any code, potentially stealing secrets, installing backdoors, or performing other malicious activities. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately. Simply removing the package does not guarantee removal of all malicious software introduced by the attacker.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The recommended mitigation is to immediately remove 'normalize-path-seq' version 3.8.9 from all systems. Treat any affected system as fully compromised and rotate all secrets and keys from a separate, trusted environment. Monitor for any signs of persistent malicious activity and perform a thorough incident response to identify and remediate any backdoors or additional malware.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4622
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-74x9-35vr-vx9c"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341527e9c797195f7ee5
Added to database: 07/06/2026, 23:02:45 UTC
Last enriched: 07/06/2026, 23:18:19 UTC
Last updated: 07/27/2026, 14:13:21 UTC
Views: 9
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.