Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @vite-ln/build-ts (npm)

0
Critical
Published: 07/08/2026 (07/08/2026, 15:04:55 UTC)
Source: GCVE Database
Product: @vite-ln/build-ts

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8972bbfdd55ad200dd49b08501d7391beca99841f0c36479806f2b1e329950a2) Package @vite-ln/build-ts copies the legitimate vite package's manifest verbatim (description 'Native-ESM powered web dev build tool', author 'Evan You', repository vitejs/vite, bin name 'vite') but is published under the unofficial scope @vite-ln rather than @vitejs. The tarball appends an obfuscated payload to the CLI entry bin/vite.js after the legitimate Vite bootstrap. The payload uses a shuffled, character-substituted string array decoded at runtime to recover endpoint hostnames, HTTP methods, and Node API names, then performs an HTTP(S) GET followed by a JSON-RPC 2.0 POST (an 'EtherHiding'-style retrieval where the payload is pulled from a blockchain RPC so the operator can rotate it without republishing), XOR-decodes the response with an embedded key, and executes the decoded bytes both via eval(r) and via a detached, hidden child_process.spawn('node', [..., r], {detached:true, stdio:'ignore', windowsHide:true}). Any developer who runs the vite CLI from this package (e.g., npx vite, npm run dev/build) executes attacker-controlled, dynamically rotated code on their machine with full developer privileges and a persisted detached process. Additional base64-decode-then-toString patterns appear in dist/node/chunks/dep-SDtFYyy1.js and dist/node/runtime.js, consistent with the same obfuscation family. ## Source: ghsa-malware (0b380eb60df5dc8d12ad64fe26e5c1ca08c4fa39505400ba90ea1a2d305121ff) 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.

Affected software

npmghsa
@vite-ln/build-ts
Affected versions
=5.15.10=5.17.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 09:41:00 UTC

Technical Analysis

@vite-ln/build-ts is a malicious npm package impersonating the legitimate vite package by copying its manifest but published under an unofficial scope. Its tarball appends an obfuscated payload to the CLI entry point that dynamically fetches attacker-controlled code via HTTP(S) GET and JSON-RPC 2.0 POST requests from blockchain RPC endpoints. The retrieved payload is XOR-decoded and executed both via eval and as a detached hidden Node.js child process, enabling persistent remote code execution with developer-level privileges. Additional obfuscation patterns are present in other package files, indicating a sophisticated evasion technique. Any system running this package is considered fully compromised.

Potential Impact

Execution of attacker-controlled code with full developer privileges on any system running the malicious package. Persistent hidden processes may remain after initial execution, leading to full system compromise. All secrets and keys stored on the affected system are at risk and should be rotated. Removal of the package does not guarantee removal of all malicious artifacts or persistence mechanisms.

Mitigation Recommendations

No official patch or fix is available for this malicious package. The package should be immediately removed from all systems. All secrets and keys stored on affected machines must be rotated from a separate, trusted environment. Due to the high likelihood of full system compromise, a thorough incident response and system rebuild or forensic investigation is recommended. Monitor for any detached node processes and suspicious network activity related to blockchain RPC endpoints. Avoid installing packages from unofficial or suspicious scopes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6984
Osv Schema Version
1.7.4
Aliases
["GHSA-p85w-qq28-35h6"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba5068715ace4357ebcb

Added to database: 07/10/2026, 09:24:32 UTC

Last enriched: 07/10/2026, 09:41:00 UTC

Last updated: 07/29/2026, 06:00:48 UTC

Views: 31

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses