Skip to content

MAL-2026-10470 Malicious code in @uw010010/vite-tree (npm)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


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

Source: amazon-inspector (280687ad50e03b43bf7f26df6afb1a8fb794eb486c126b2368f37c6b76625318)

The package @uw010010/vite-tree impersonates the upstream vite package: its package.json verbatim copies vite's author ('Evan You'), description ('Native-ESM powered web dev build tool'), bin name 'vite', repository (git+https://github.com/vitejs/vite.git), and homepage (https://vitejs.dev), and ships vite's README. Appended to bin/vite.js, after ~5KB of whitespace padding, is an obfuscated trailer that builds a shuffled string-array dispatcher (via Fisher-Yates permutation with String.fromCharCode(127) sentinel substitution) to reconstitute method/property names such as 'http(s)', 'get', 'POST', 'request', 'child_process', 'spawn', 'JSON.parse', 'JSON.stringify', and '2.0'. At runtime the trailer issues an HTTP GET and a JSON-RPC 2.0 POST (id:1) to an attacker-controlled endpoint, XOR-decodes the response with a key derived from the response, and then both eval()s the decoded string and invokes child_process.spawn with detached:true, windowsHide:true, stdio:'ignore' to run the same decoded payload as a detached background process. The bin executes on every invocation of vite / npx vite from this package, so any developer who installs the typosquat and runs the bin gets arbitrary attacker code executed on their machine plus a hidden detached child for persistence.

Source: ghsa-malware (24e30c92f11a29a0e4bf5e15c082c6e473e2a265da1631b08f3a4dc562212580)

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.

Upgrade path

1 package: 0 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
uw010010 @uw010010/vite-tree(npm) = 3.4.1; = 3.4.2; = 3.4.3; = 3.6.1 +2 more No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
uw010010 @uw010010/vite-tree(npm) All versions No fix listed
uw010010 @uw010010/vite-tree(npm) = 3.4.3 No fix listed
uw010010 @uw010010/vite-tree(npm) = 3.6.1 No fix listed
uw010010 @uw010010/vite-tree(npm) = 3.4.2 No fix listed
uw010010 @uw010010/vite-tree(npm) = 3.4.1 No fix listed
uw010010 @uw010010/vite-tree(npm) = 8.1.0 No fix listed

References