VDB
KO

MAL-2026-13465

Malicious code in vite-vue-path-map (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (a6841df6c82f556057129d7bf3f23a6cccff9da407678d980875c5529e40caa9) The package is advertised as a Vite plugin that generates a local pathInfo.json map, but its generateBundle hook appends obfuscated JavaScript to the largest/entry JS chunk of the developer's build when a hidden MD5 license check (global['gva-project-name'] vs global['gva-secret']) fails. The appended code is stored as base64 constants (G, v, O) decoded via atob() at runtime. On every page load of the resulting production site it creates an invisible 0x0 off-screen <img> whose src decodes to https://plugin.gin-vue-admin.com/api/shopImage/view?name=logo.svg, sending a per-visitor beacon to an author-controlled domain. If that request fails or the server returns a non-image response, the onerror handler invokes document.open() and document.write() with a base64-decoded Chinese-language 'project unauthorized, contact WeChat shouzi_1994' HTML page, replacing the developer's application in every visitor's browser. The injection, beacon, and defacement behavior are not documented in the README and are activated at server-side discretion of the author's domain, giving whoever controls plugin.gin-vue-admin.com a remote switch to deface any site that shipped a build produced with this plugin.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / vite-vue-path-map

No fixed version published yet for vite-vue-path-map (npm). Pin to a known-safe version or switch to an alternative.

References