vite-tsconfig@1.1.2
Malicious code in vite-tsconfig (npm)
Analysis
vite-tsconfig@1.1.2 ships a remote-code-execution implant in lib/mapProps.js. When a developer uses the configJson() middleware, it spawns a detached Node.js subprocess (detached:true, stdio:ignore, child.unref()) that fetches arbitrary code from jsonkeeper[.]com/b/LVKHJ and executes it via new Function("require", code) — giving the attacker full require() access. The TypeScript source src/mapProps.ts is deliberately omitted from the tarball (only the compiled JS and .d.ts are shipped). Publisher uses a throwaway email ([account]). This is a stealthy second-stage RCE loader that activates on API usage, not install.
- analyzed by
- Leitwacht
- first seen
- Jun 11, 2026, 05:26 PM
- analyzed
- Jun 11, 2026, 05:27 PM
Related advisories
- bubblestring@1.1.4
- node-env-resolve@1.0.0
- hex-type@3.0.2
- prettier_v2@3.8.5
- win-build-utils@1.0.0
- prettier_v1@3.8.4
- optional-cpu-features@1.0.3
- dolyame-ui-tooltip@35.8.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.