Skip to main content
MalwarePublished

devplatform-vite-plugin-preserve-css-modules (npm) · Malicious Code

Affects devplatform-vite-plugin-preserve-css-modulesSource GCVE Database

0

Malicious package : remove devplatform-vite-plugin-preserve-css-modules and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 21:48 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13274

What to do

Remove devplatform-vite-plugin-preserve-css-modules 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
npmdevplatform-vite-plugin-preserve-css-modulesAffected
  • =35.6.8
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 devplatform-vite-plugin-preserve-css-modules version 35.6.8 contains malicious code that, upon being required, downloads and executes a native binary from obfuscated and covert-channel fallback hosts. This binary is saved under disguised filenames in temporary directories and executed detached from the main process. The package masquerades as a legitimate vite plugin but performs unauthorized remote code execution on the installer's machine.

References

Community reviews

Loading reviews…