Skip to main content
MalwarePublished Updated

vite-plugin-env-compat-plus (npm) · Malicious Code

Affects vite-plugin-env-compat-plusSource GCVE Database

0

Malicious package : remove vite-plugin-env-compat-plus and rotate any secrets on hosts that installed it.

Data as of 25 Nov 2026, 11:31 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-4334

What to do

Remove vite-plugin-env-compat-plus 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-plugin-env-compat-plusAffected
  • =5.2.3
  • =5.2.2
  • =5.2.4
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-plugin-env-compat-plus versions 5.2.2, 5.2.3, and 5.2.4 contain malicious code. Any system with this package installed or running should be considered fully compromised. Immediate rotation of all secrets and keys stored on the affected system is advised. Removal of the package is recommended, but full remediation may require additional measures due to potential persistent compromise.

References

Community reviews

Loading reviews…