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-svg-parse (npm)

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

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

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
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 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