🛡️ MAL-2026-6988 — tab

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in @vite-tab/tab (npm)

Source: amazon-inspector

@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.

Affected software

MAL-2026-6988 is recorded against 1 package.

  • @vite-tab/tab

Timeline and source

Published on 8 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

www.npmjs.com (Package)
www.npmjs.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-07-08
Updated 2026-08-12
Modified 2026-07-08
Fix URL N/A

Affected Packages

Software From version Fixed in
@vite-tab/tab

Free Vulnerability Check

Is your site affected by MAL-2026-6988?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-6988 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.