Malicious code in vite-svg-parse (npm)
The npm package vite-svg-parse version 1.1.3 contains malicious code that decodes and executes a hidden shell command to install an undeclared third-party package named node-internal-svg-loader. This concealed installation and execution occur at runtime when the package's documented API is called, causing hidden code execution within the installer's Node.js process.
AI Analysis
Technical Summary
The vite-svg-parse package (version 1.1.3) exports API functions getPlugin and setPlugin that decode two base64-encoded strings at runtime. The first string decodes to a shell command that installs the npm package node-internal-svg-loader without saving it to dependencies and suppresses output and audits. The second string decodes to the module name node-internal-svg-loader, which is then required and invoked. This undeclared dependency is hidden from static analysis by encoding the command and module name in base64. Any consumer calling the documented API triggers the installation and execution of this hidden package within the Node.js process, leading to execution of potentially malicious code.
Potential Impact
Any user or system that imports vite-svg-parse version 1.1.3 and calls its documented API will unknowingly execute a hidden shell command that installs and runs an undeclared third-party package. This results in arbitrary code execution within the Node.js process, which can compromise the integrity and security of the environment where the package is used.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using vite-svg-parse version 1.1.3. Review and audit dependencies carefully before use. Monitor for updates or advisories from the package maintainers or npm registry regarding this issue. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Malicious code in vite-svg-parse (npm)
Description
The npm package vite-svg-parse version 1.1.3 contains malicious code that decodes and executes a hidden shell command to install an undeclared third-party package named node-internal-svg-loader. This concealed installation and execution occur at runtime when the package's documented API is called, causing hidden code execution within the installer's Node.js process.
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-svg-parse package (version 1.1.3) exports API functions getPlugin and setPlugin that decode two base64-encoded strings at runtime. The first string decodes to a shell command that installs the npm package node-internal-svg-loader without saving it to dependencies and suppresses output and audits. The second string decodes to the module name node-internal-svg-loader, which is then required and invoked. This undeclared dependency is hidden from static analysis by encoding the command and module name in base64. Any consumer calling the documented API triggers the installation and execution of this hidden package within the Node.js process, leading to execution of potentially malicious code.
Potential Impact
Any user or system that imports vite-svg-parse version 1.1.3 and calls its documented API will unknowingly execute a hidden shell command that installs and runs an undeclared third-party package. This results in arbitrary code execution within the Node.js process, which can compromise the integrity and security of the environment where the package is used.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using vite-svg-parse version 1.1.3. Review and audit dependencies carefully before use. Monitor for updates or advisories from the package maintainers or npm registry regarding this issue. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13464
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a75744bbf8831d539d9af08
Added to database: 08/07/2026, 05:59:39 UTC
Last enriched: 08/07/2026, 06:13:02 UTC
Last updated: 08/07/2026, 18:13:21 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.