Skip to main content
MalwarePublished

vite-pwa-config (npm) · Malicious Code

Affects vite-pwa-configSource GCVE Database

0

Malicious package : remove vite-pwa-config and rotate any secrets on hosts that installed it.

Data as of 10 Jul 2026, 09:52 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10092

What to do

Remove vite-pwa-config from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmvite-pwa-configAffected
  • =1.1.1
  • =1.1.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package vite-pwa-config is a malicious typosquat of the legitimate vite-plugin-pwa package. It tricks users into importing a config object that, when invoked, spawns a detached Node.js child process which silently fetches and executes arbitrary JavaScript code from a mutable remote URL. This remote code execution occurs with full require access in the developer's build environment, enabling arbitrary code execution. The package uses environment variable shims and silent child processes to evade casual detection. Versions 1.1.1 and 1.1.2 of vite-pwa-config are affected.

References

Community reviews

Loading reviews…