Skip to main content
MalwarePublished Updated

vite-plugin-cleaner (npm) · Malicious Code

Affects vite-plugin-cleanerSource GCVE Database

0

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

Data as of 26 Oct 2026, 16:15 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13463

What to do

Remove vite-plugin-cleaner 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-cleanerAffected
  • =4.1.3
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-cleaner version 4.1.3 includes an optional dependency on vite-cleaning-tools, which is fetched directly from a mutable GitHub repository reference without a fixed commit or tag. This causes the postinstall script to execute code from the latest GitHub HEAD on every npm install, allowing the repository maintainer or anyone with write access to inject arbitrary code at install time without publishing a new npm version.

References

Community reviews

Loading reviews…