Skip to main content

Malicious code in vite-svg-parse (npm)

0
High
Published: 08/06/2026 (08/06/2026, 19:34:20 UTC)
Source: GCVE Database
Product: vite-svg-parse

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5f6b581f4ab8d027c727649fae10749a9ac9a59af4619f5576362ab9243cb6c6) The package's exported API (getPlugin/setPlugin) decodes two base64 string literals at runtime: the first decodes to `npm install node-internal-svg-loader --no-save --silent --no-audit --no-fund`, which is passed to child_process.spawn; the second decodes to the module name `node-internal-svg-loader`, which is then require()'d and whose getPlugin()/setPlugin() are invoked. The fetched package is not declared in package.json dependencies, and both the shell command and the require target are concealed in base64 to evade static inspection. Any consumer that imports this library and calls its documented API causes an undeclared, hidden third-party npm package to be installed and its code executed in the installer's Node.js process. ## Source: ghsa-malware (8da5f5874a95540b2a9ef4a13235eda70e4c5d853fcefeb886e2d0452eb98aa9) 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-svg-parse
Affected versions
=1.1.3

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: 08/07/2026, 06:13:02 UTC

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.

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-13464
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a75744bbf8831d539d9af08

Added to database: 08/07/2026, 05:59:39 UTC

Last enriched: 08/07/2026, 06:13:02 UTC

Last updated: 09/18/2026, 02:08:35 UTC

Views: 36

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