Malicious code in viteplugiin (npm)
The npm package 'viteplugiin' is a malicious package impersonating the legitimate '@base44/viteplugin' by inserting an extra 'i' in its name. It contains obfuscated code that executes attacker-controlled JavaScript during module load, triggered when used in Vite configuration files. This causes the malicious payload to run on developer and CI machines whenever any Vite command is executed. The package exhibits typical signs of a supply chain attack, including an empty author field, no repository or homepage, and misleading package metadata. Only version 1.0.28 of 'viteplugiin' is known to be affected.
AI Analysis
Technical Summary
The 'viteplugiin' npm package impersonates the legitimate '@base44/viteplugin' by a one-character name variation. It contains a hostile payload in its dist/index.js file, which is executed at module load time due to the package's exports map directing '.' to this file. The payload uses obfuscated code involving Fisher-Yates string shuffles to reconstruct critical identifiers such as 'require', '__dirname', '__filename', 'undefined', and 'constructor'. It then reassigns these onto the global object and invokes the Function constructor on decoded strings, executing attacker-controlled JavaScript. Since Vite plugins are imported at config evaluation time, this causes the malicious code to run on any machine running Vite commands with this plugin included in vite.config.* files. The package metadata is suspicious, with an empty author, no repository or homepage, and a 'main' field pointing to a nonexistent file, while the exports map silently routes to the malicious code. The README and internal references mimic the legitimate plugin to evade detection.
Potential Impact
The malicious code executes arbitrary JavaScript on developer and CI machines during Vite build commands, potentially compromising the build environment and any systems with access to those machines. This can lead to unauthorized code execution, data theft, or further compromise of development pipelines. The attack targets the software supply chain by masquerading as a legitimate plugin, increasing the risk of widespread impact if adopted.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should avoid installing or using 'viteplugiin' version 1.0.28. Verify package names carefully to avoid typosquatting attacks and prefer official, verified packages. Remove any instances of 'viteplugiin' from project dependencies and vite.config.* files. Monitor for suspicious activity in development and CI environments. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Malicious code in viteplugiin (npm)
Description
The npm package 'viteplugiin' is a malicious package impersonating the legitimate '@base44/viteplugin' by inserting an extra 'i' in its name. It contains obfuscated code that executes attacker-controlled JavaScript during module load, triggered when used in Vite configuration files. This causes the malicious payload to run on developer and CI machines whenever any Vite command is executed. The package exhibits typical signs of a supply chain attack, including an empty author field, no repository or homepage, and misleading package metadata. Only version 1.0.28 of 'viteplugiin' is known to be affected.
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 'viteplugiin' npm package impersonates the legitimate '@base44/viteplugin' by a one-character name variation. It contains a hostile payload in its dist/index.js file, which is executed at module load time due to the package's exports map directing '.' to this file. The payload uses obfuscated code involving Fisher-Yates string shuffles to reconstruct critical identifiers such as 'require', '__dirname', '__filename', 'undefined', and 'constructor'. It then reassigns these onto the global object and invokes the Function constructor on decoded strings, executing attacker-controlled JavaScript. Since Vite plugins are imported at config evaluation time, this causes the malicious code to run on any machine running Vite commands with this plugin included in vite.config.* files. The package metadata is suspicious, with an empty author, no repository or homepage, and a 'main' field pointing to a nonexistent file, while the exports map silently routes to the malicious code. The README and internal references mimic the legitimate plugin to evade detection.
Potential Impact
The malicious code executes arbitrary JavaScript on developer and CI machines during Vite build commands, potentially compromising the build environment and any systems with access to those machines. This can lead to unauthorized code execution, data theft, or further compromise of development pipelines. The attack targets the software supply chain by masquerading as a legitimate plugin, increasing the risk of widespread impact if adopted.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should avoid installing or using 'viteplugiin' version 1.0.28. Verify package names carefully to avoid typosquatting attacks and prefer official, verified packages. Remove any instances of 'viteplugiin' from project dependencies and vite.config.* files. Monitor for suspicious activity in development and CI environments. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10546
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a55ff6168715ace432f1b1e
Added to database: 07/14/2026, 09:20:33 UTC
Last enriched: 07/14/2026, 09:32:09 UTC
Last updated: 07/30/2026, 17:49:12 UTC
Views: 8
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.