Skip to main content
MalwarePublished Updated

@vite-js/ui (npm) · Malicious Code

Affects @vite-js/uiSource GCVE Database

0

Malicious package : remove @vite-js/ui and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 15:56 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-7021

What to do

Remove @vite-js/ui 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
npm@vite-js/uiAffected
  • =7.15.16
  • =7.15.10
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-js/ui' is a malicious impersonation of the official 'vite' package. It mimics the legitimate package's metadata and structure but includes a heavily obfuscated payload that executes hidden code. This payload fetches and decodes remote code, executes it via eval, and spawns a detached process that persists beyond the CLI invocation, effectively creating a backdoor. The malicious code is present in versions 7.15.10 and 7.15.16 of '@vite-js/ui'.

References

Community reviews

Loading reviews…