Malicious code in @vite-pro/vite-ui (npm)
The npm package @vite-pro/vite-ui impersonates the official vite package by mimicking author and repository metadata. It contains obfuscated malicious code that executes every time the vite CLI is run, fetching and executing remote payloads. This results in arbitrary code execution and a persistent hidden background process on the developer's machine.
AI Analysis
Technical Summary
The @vite-pro/vite-ui package is a malicious npm package designed to impersonate the legitimate vite package by copying author information, repository links, and documentation. It appends an obfuscated Immediately Invoked Function Expression (IIFE) to its CLI binary that uses a seeded Fisher-Yates shuffle and XOR decryption to hide remote endpoints and constants. Upon execution, it fetches a remote payload over HTTP, decrypts and evaluates it, then fetches a second payload which it runs as a detached, hidden child process. This behavior enables attackers to gain arbitrary code execution and maintain persistent background processes on developer machines each time the vite CLI is invoked via commands like vite, npx vite, or npm run dev/build. The obfuscation and execution techniques align with known blockchain command-and-control loader families.
Potential Impact
This malicious package allows attackers to execute arbitrary code on developer machines and maintain persistent, hidden background processes. This compromises the security and integrity of the development environment, potentially leading to further system compromise or data exfiltration. The infection occurs whenever the vite CLI is run, making it highly persistent and stealthy.
Mitigation Recommendations
No official patch or fix is available as this is a malicious package impersonating a legitimate one. The recommended mitigation is to avoid using the @vite-pro/vite-ui package entirely. Developers should verify package authenticity before installation, prefer official package sources, and remove any instances of this malicious package from their environments. Monitoring for unexpected child processes spawned by vite CLI executions may help detect infections.
Malicious code in @vite-pro/vite-ui (npm)
Description
The npm package @vite-pro/vite-ui impersonates the official vite package by mimicking author and repository metadata. It contains obfuscated malicious code that executes every time the vite CLI is run, fetching and executing remote payloads. This results in arbitrary code execution and a persistent hidden background process on the developer's machine.
Affected software
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
Technical Analysis
The @vite-pro/vite-ui package is a malicious npm package designed to impersonate the legitimate vite package by copying author information, repository links, and documentation. It appends an obfuscated Immediately Invoked Function Expression (IIFE) to its CLI binary that uses a seeded Fisher-Yates shuffle and XOR decryption to hide remote endpoints and constants. Upon execution, it fetches a remote payload over HTTP, decrypts and evaluates it, then fetches a second payload which it runs as a detached, hidden child process. This behavior enables attackers to gain arbitrary code execution and maintain persistent background processes on developer machines each time the vite CLI is invoked via commands like vite, npx vite, or npm run dev/build. The obfuscation and execution techniques align with known blockchain command-and-control loader families.
Potential Impact
This malicious package allows attackers to execute arbitrary code on developer machines and maintain persistent, hidden background processes. This compromises the security and integrity of the development environment, potentially leading to further system compromise or data exfiltration. The infection occurs whenever the vite CLI is run, making it highly persistent and stealthy.
Mitigation Recommendations
No official patch or fix is available as this is a malicious package impersonating a legitimate one. The recommended mitigation is to avoid using the @vite-pro/vite-ui package entirely. Developers should verify package authenticity before installation, prefer official package sources, and remove any instances of this malicious package from their environments. Monitoring for unexpected child processes spawned by vite CLI executions may help detect infections.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10526
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a55ff6868715ace432f1d00
Added to database: 07/14/2026, 09:20:40 UTC
Last enriched: 07/14/2026, 09:35:15 UTC
Last updated: 07/25/2026, 13:58:38 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.