Skip to main content
MalwarePublished

vite-vue-path-map (npm) · Malicious Code

Affects vite-vue-path-mapSource GCVE Database

0

Malicious package : remove vite-vue-path-map and rotate any secrets on hosts that installed it.

Data as of 7 Aug 2026, 07:42 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13465

What to do

Remove vite-vue-path-map 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-vue-path-mapAffected
  • =1.0.2
  • =1.0.1
  • =1.0.0
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-vue-path-map (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious code that activates if a hidden license check fails. This code appends obfuscated JavaScript to the built application, which on page load sends a beacon to an attacker-controlled domain. If the beacon request fails or returns an unexpected response, the code replaces the entire web application with a defacement page in Chinese, controlled remotely by the attacker. This behavior is undocumented and allows remote defacement of any site built with this plugin.

References

Community reviews

Loading reviews…