registry  /  vite-json-pwa  /  1.1.2

vite-json-pwa@1.1.2

OSV Malicious Advisory

scanned 3h ago · by OpenSSF/OSV

OpenSSF/OSV advisory MAL-2026-6969 confirms this npm version as malicious. vite-json-pwa@1.1.2 impersonates the popular vite-plugin-pwa (mirroring its VitePWA/cachePreset/configField API surface) and injects a remote code loader into the plugin's runtime path. The exported configField API invokes getUseropt, which uses child_process.spawn to launch a detached node process running dist/client/dev/reactopt.js with stdio:'ignore' and child.unref(), hiding output and outliving the parent...

Advisory
MAL-2026-6969
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in vite-json-pwa (npm)
Details
vite-json-pwa@1.1.2 impersonates the popular vite-plugin-pwa (mirroring its VitePWA/cachePreset/configField API surface) and injects a remote code loader into the plugin's runtime path. The exported configField API invokes getUseropt, which uses child_process.spawn to launch a detached node process running dist/client/dev/reactopt.js with stdio:'ignore' and child.unref(), hiding output and outliving the parent. reactopt.js performs an HTTP GET to https://www.jsonkeeper.com/b/TUJAY (an anonymous, author-mutable paste host disguised behind variable names DEV_API_KEY / DEV_SECRET_KEY and a shadow process.env object), takes the returned string body, wraps it in new Function('require', s), and invokes it with the host's require — giving attacker-controlled JavaScript full Node privileges on the developer/build machine. The reactopt.js name and client/dev/ path are cover-story camouflage; a Vite plugin has no legitimate reason to fork a hidden detached node child that eval's remote paste-bin content. Any consumer whose Vite config invokes the plugin's configField will pull and execute whatever JavaScript the attacker currently hosts at jsonkeeper.com/b/TUJAY. ## Source: ghsa-malware (da660f2033a7177d94363a6e8df210ba23bb1fde45059eb74722d3dec56f0094) 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.
Decision reason
OpenSSF Malicious Packages via OSV confirms vite-json-pwa@1.1.2 as malicious (MAL-2026-6969): Malicious code in vite-json-pwa (npm)

Source & flagged code

0 flagged
No flagged code excerpts are attached to this scan.

Findings

1 High
HighOsv Malicious Advisory