npm · Malicious package advisory
Malwarenormalize-path-seq
MAL-2026-4622
Malicious code in normalize-path-seq (npm)
Details
---
_-= 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.
Compromised versions (1)
- 3.8.9
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.