pathfix@3.0.7
Malicious code in pathfix (npm)
Analysis
pathfix@3.0.7 is a remote-code-execution dropper. On require(), it immediately makes an HTTP GET to hxxps://jsonkeeper[.]com/b/MC9ED, parses the response as JSON, and executes the .data field as arbitrary code via new Function('require', code) with the full require() scope injected — giving the remote payload access to the filesystem, child_process, and any installed dependencies. The package pretends to be "Stylus porting of normalize.css" but the actual code has nothing to do with that; it's a thin wrapper around a live payload URL. The dependency on sqlite3 (a heavy native module) causes install failures that conveniently mask the RCE on a broken install. No token-theft markers in the static code, but the second-stage payload fetched at runtime could exfil anything.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 02:00 AM
- analyzed
- Jun 12, 2026, 02:01 AM
Related advisories
- passport-local-strategy@3.0.0
- parkhaima@1.0.0
- paper-password-input@45.0.0
- pampipes@1.1.9
- chai-web3-testkit@1.0.1
- req-parmas-valid@1.0.2
- mddriver@1.8.6
- vite-config-react@1.3.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.