vite-vue-path-map
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-q5wh-5wp7-j3cx
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in vite-vue-path-map (npm)
---
_-= 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.
Source: ghsa-malware (cbc02740b4c38f27ff8b5378f486f452154a286518ab1f46641c6eaff3644915)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0