# GHSA-X54R-H449-29V5: Malicious code in @vite-tab/tab (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-07-27
- Modified: 2026-07-27

## Affected versions

- @vite-tab/tab (npm): 5.7.0
- @vite-tab/tab (npm): 3.15.10

## Description

## Source: amazon-inspector (95af865d1cf7d45f2b4c2a73eebcfcd1a1a6aba9a36f33bf8256ef4d7235903c)
`@vite-tab/tab` republishes Vite's codebase under a different name while impersonating the upstream project: `package.json` declares `bin: { vite: 'bin/vite.js' }` (hijacking the `vite` command on $PATH), `author: 'Evan You'`, `repository: git+https://github.com/vitejs/vite.git`, and `homepage: https://vitejs.dev`. Appended to `bin/vite.js` after the legitimate Vite bootstrap is a self-decoding string table (`var _$_4445=(function(k,p){...})("...",4606094)`) built via a Fisher-Yates-style scramble with `\x25`/`\x23` substitution markers; all sensitive identifiers (`https`, `get`, `request`, `JSON.parse`, `child_process`, `spawn`, `eval`, host fragments) are referenced as indices into this table to defeat static review. At runtime the decoded routines perform an HTTPS GET followed by a JSON-RPC POST (`{jsonrpc, method, params, id:1}`) to a dynamically resolved hostname, base64-decode and XOR-decrypt the response, and pass it to `eval(r)`; a second fetched payload is launched via `child_process.spawn(..., {detached:true, windowsHide:true})`, with a 30-second throttle. The fetch loop runs every time a developer invokes the hijacked `vite` command, giving the publisher arbitrary remote code execution on the developer machine with persistence via detached child processes. The remote-hostname JSON-RPC lookup makes the C2 endpoint resistant to static domain blocking.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/be6382940bda7f3b21b5b0bb4343e6a13809b911/osv/malicious/npm/@vite-tab/tab/MAL-2026-6988.json))

## References

- https://github.com/ossf/malicious-packages/blob/be6382940bda7f3b21b5b0bb4343e6a13809b911/osv/malicious/npm/@vite-tab/tab/MAL-2026-6988.json
- https://www.npmjs.com/package/@vite-tab/tab/v/3.15.10
- https://www.npmjs.com/package/@vite-tab/tab/v/5.7.0
- https://github.com/advisories/GHSA-x54r-h449-29v5

Page: https://cve.now/GHSA-X54R-H449-29V5

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
