Malicious code in vite-json-pwa (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9f9204782dfa050ba762ce8c8a35c01e9f7b1e8bf82e140854d182f9614080b6) [email protected] impersonates the legitimate vite-plugin-pwa package (author metadata claims 'inna voik' while funding/homepage point at the real vite-pwa/antfu project) and re-exports its API alongside an added `configField(...)` middleware factory. When a consumer invokes `configField` (the expected pattern for a drop-in vite-plugin-pwa replacement), it spawns a detached, stdio-ignored `node` child running `dist/client/dev/reactopt.js`. That helper uses axios to GET `https://www.jsonkeeper.com/b/J7GQS`, extracts a `Cookie` field from the JSON body, and executes it via `new Function('require', s)(require)` — arbitrary attacker-controlled Node code with full privileges in the developer/build process tree. The remote URL is disguised inside a fake local `process = { env: { DEV_API_KEY: 'https://www.jsonkeeper.com/b/J7GQS',... } }` object to make the hardcoded C2 look like an env-var lookup, and the file/export names ('reactopt.js', 'configField') are cover-story identifiers designed to blend into a legitimate-looking build. jsonkeeper.com is a mutable public paste service, so the payload can be swapped at any time. The detached spawn plus `stdio: 'ignore'` and a retry loop are chosen to hide execution and ensure delivery. ## 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.
AI Analysis
Technical Summary
The vite-json-pwa npm package is identified as containing malicious code that fully compromises affected systems. Installation or execution of this package grants an attacker full control over the computer, potentially exposing all stored secrets and keys. Due to the severity of the compromise, simply uninstalling the package is insufficient to ensure system integrity, as additional malicious software may persist.
Potential Impact
Full system compromise on any computer with the vite-json-pwa package installed or running. All secrets and keys stored on the compromised system are at risk and must be rotated immediately from a different, secure machine. The attacker may maintain persistent access beyond the presence of the package itself.
Mitigation Recommendations
Remove the vite-json-pwa package immediately. Rotate all secrets and keys from a separate, uncompromised computer. Because the system may be fully compromised, consider rebuilding or thoroughly cleaning the affected system to ensure removal of all malicious components. No official patch or fix is available; remediation relies on removal and secret rotation.
Malicious code in vite-json-pwa (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9f9204782dfa050ba762ce8c8a35c01e9f7b1e8bf82e140854d182f9614080b6) [email protected] impersonates the legitimate vite-plugin-pwa package (author metadata claims 'inna voik' while funding/homepage point at the real vite-pwa/antfu project) and re-exports its API alongside an added `configField(...)` middleware factory. When a consumer invokes `configField` (the expected pattern for a drop-in vite-plugin-pwa replacement), it spawns a detached, stdio-ignored `node` child running `dist/client/dev/reactopt.js`. That helper uses axios to GET `https://www.jsonkeeper.com/b/J7GQS`, extracts a `Cookie` field from the JSON body, and executes it via `new Function('require', s)(require)` — arbitrary attacker-controlled Node code with full privileges in the developer/build process tree. The remote URL is disguised inside a fake local `process = { env: { DEV_API_KEY: 'https://www.jsonkeeper.com/b/J7GQS',... } }` object to make the hardcoded C2 look like an env-var lookup, and the file/export names ('reactopt.js', 'configField') are cover-story identifiers designed to blend into a legitimate-looking build. jsonkeeper.com is a mutable public paste service, so the payload can be swapped at any time. The detached spawn plus `stdio: 'ignore'` and a retry loop are chosen to hide execution and ensure delivery. ## 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vite-json-pwa npm package is identified as containing malicious code that fully compromises affected systems. Installation or execution of this package grants an attacker full control over the computer, potentially exposing all stored secrets and keys. Due to the severity of the compromise, simply uninstalling the package is insufficient to ensure system integrity, as additional malicious software may persist.
Potential Impact
Full system compromise on any computer with the vite-json-pwa package installed or running. All secrets and keys stored on the compromised system are at risk and must be rotated immediately from a different, secure machine. The attacker may maintain persistent access beyond the presence of the package itself.
Mitigation Recommendations
Remove the vite-json-pwa package immediately. Rotate all secrets and keys from a separate, uncompromised computer. Because the system may be fully compromised, consider rebuilding or thoroughly cleaning the affected system to ensure removal of all malicious components. No official patch or fix is available; remediation relies on removal and secret rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6969
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-3f72-wf55-pqjc"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4e4ed4c9d9e3dbe3287dcb
Added to database: 07/08/2026, 13:21:24 UTC
Last enriched: 07/08/2026, 13:30:00 UTC
Last updated: 07/31/2026, 09:38:10 UTC
Views: 41
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.