vite-config-field@1.1.0
Malicious code in vite-config-field (npm)
Analysis
Package impersonates the vite-plugin-pwa ecosystem by copying its README and package structure. When the Vite plugin's configFields() function is called during build, it spawns a detached child process (node ./dist/client/dev/reactopt.js) that fetches a second-stage payload from www[.]jsonkeeper[.]com/b/DDC6J using the custom header x-secret-key and executes it immediately via Function constructor with full require() access, enabling arbitrary remote code execution in the build context. The detached subprocess is spawned with stdio:ignore and unref'd so the install/build shows no visible output.
- analyzed by
- Leitwacht
- first seen
- Jun 15, 2026, 03:45 PM
- analyzed
- Jun 15, 2026, 03:46 PM
Related advisories
- dms-backend@1.0.0
- ts-webplug@3.0.5
- tsliverhome@1.1.5
- trgrip@1.0.4
- transform-es2015-destructuring@6.24.1
- texttweak-kit@1.0.0
- stylelint-standard@1.2.0
- sisubeny-bun-pwn-payload-1@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.