node-path-utils@1.23.2
Malicious code in node-path-utils (npm)
Analysis
On require(), the package fetches JSON from jsonkeeper[.]com (a public pastebin-like service) and evals the response content, giving the attacker full remote code execution on any machine that installs this package. The package impersonates Node's built-in path module (name "node-path-utils", description "exact copy of the NodeJS path module") but contains a hidden IIFE in path.js that calls loadTokenData(), which base64-decodes the URL aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9QMENORA== (jsonkeeper[.]com/b/P0CND), fetches the JSON content field, and passes it to eval(). A second URL (jsonkeeper[.]com/b/XTXBX) is present but commented out. The publisher uses a ProtonMail throwaway address ([account]), the package was published once as version 1.23.2 with no history, and it bundles unnecessary dependencies (axios, mddriver) that are irrelevant to path utilities — all indicators of a combosquat supply-chain attack delivering dynamic second-stage payloads.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 07:32 AM
- analyzed
- Jun 12, 2026, 07:34 AM
Related advisories
- peptideenv@16.6.6
- vite-react-toolkit@1.0.1
- payments-ui-services@45.0.0
- pathfix@3.0.7
- passport-local-strategy@3.0.0
- parkhaima@1.0.0
- paper-password-input@45.0.0
- pampipes@1.1.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.