VYPR

npm · Malicious package advisory

Malware

@vite-ts/vite-ui

GHSA-qrmw-84f8-4v9c

Malicious code in @vite-ts/vite-ui (npm)

Details

**Severity:** Critical

**Affected versions:** `= 6.44.1`

## Source: amazon-inspector (c6076869d73ce328ffd736c9df9d269cd99e505ffc3bfceae5d3f5a633a8c420)
Package @vite-ts/[email protected] impersonates the legitimate vite package: it clones vite's README, declares author 'Evan You', homepage https://vitejs.dev, repository vitejs/vite, and a bin entry mapping `vite` to bin/vite.js. The shipped bin/vite.js contains an obfuscated IIFE that reconstructs a string table from a shuffled blob using the integer seed 4606094 to hide the strings 'https', 'child_process', 'eval', 'POST', '2.0', and the destination URLs. At runtime the payload issues an HTTPS GET to an Ethereum block-explorer URL and a JSON-RPC POST to an Ethereum node, XOR-decodes the hex result to retrieve JavaScript code from an attacker-controlled smart contract (EtherHiding pattern), and executes the retrieved code via eval(r) and via a detached child_process.spawn('node', ['-e',...+r], { detached: true, windowsHide: true }). The fetched bytes are not pinned, not signature-verified, and are mutable by the contract owner, so any consumer invoking the `vite` CLI from this package runs whatever code the attacker currently has staged on-chain. Additional install-time curl invocations and Buffer.from(...,'base64').toString() decode chains are present in the bundled dist files.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/5d940078cdc77cc3f22393c3db9fa84fc7c6b977/osv/malicious/npm/@vite-ts/vite-ui/MAL-2026-10527.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/5d940078cdc77cc3f22393c3db9fa84fc7c6b977/osv/malicious/npm/@vite-ts/vite-ui/MAL-2026-10527.json
- https://www.npmjs.com/package/@vite-ts/vite-ui/v/6.44.1
- https://github.com/advisories/GHSA-qrmw-84f8-4v9c

Compromised versions (1)

  • = 6.44.1

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.