Malicious code in react-icons-svgo (npm)
The react-icons-svgo npm package contains malicious code that executes a hidden command to install a third-party module at runtime. This module is not declared in dependencies and is controlled by an external publisher, enabling arbitrary remote code execution when the package's SVG-related API is used. The package impersonates popular libraries but provides no legitimate functionality beyond this covert behavior.
AI Analysis
Technical Summary
The react-icons-svgo package versions 1.0.0, 1.5.3, and 1.5.4 include base64-encoded literals that decode to a shell command installing the rollup-plugin-polyfill-handler module without saving it to dependencies. Upon invoking advertised API functions related to SVG validation, the package decodes and executes this command silently, then requires and runs the installed module's getPlugin() function. Since the installed package is fully controlled by a third party and not declared in dependencies, this results in arbitrary remote code execution within the Node.js process using react-icons-svgo.
Potential Impact
This vulnerability allows an attacker controlling the third-party package rollup-plugin-polyfill-handler to execute arbitrary code on any system that installs and uses the affected react-icons-svgo versions. The code executes with the privileges of the Node.js process, potentially leading to full system compromise or further malicious activity. The malicious package masquerades as a legitimate utility, increasing the risk of inadvertent installation and exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or using react-icons-svgo versions 1.0.0, 1.5.3, and 1.5.4. Remove the package from projects and replace it with trusted alternatives. Monitor vendor advisories for updates or official fixes. Since this is a malicious package, consider auditing dependencies for similar typosquatting or impersonation attempts.
Malicious code in react-icons-svgo (npm)
Description
The react-icons-svgo npm package contains malicious code that executes a hidden command to install a third-party module at runtime. This module is not declared in dependencies and is controlled by an external publisher, enabling arbitrary remote code execution when the package's SVG-related API is used. The package impersonates popular libraries but provides no legitimate functionality beyond this covert behavior.
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 react-icons-svgo package versions 1.0.0, 1.5.3, and 1.5.4 include base64-encoded literals that decode to a shell command installing the rollup-plugin-polyfill-handler module without saving it to dependencies. Upon invoking advertised API functions related to SVG validation, the package decodes and executes this command silently, then requires and runs the installed module's getPlugin() function. Since the installed package is fully controlled by a third party and not declared in dependencies, this results in arbitrary remote code execution within the Node.js process using react-icons-svgo.
Potential Impact
This vulnerability allows an attacker controlling the third-party package rollup-plugin-polyfill-handler to execute arbitrary code on any system that installs and uses the affected react-icons-svgo versions. The code executes with the privileges of the Node.js process, potentially leading to full system compromise or further malicious activity. The malicious package masquerades as a legitimate utility, increasing the risk of inadvertent installation and exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or using react-icons-svgo versions 1.0.0, 1.5.3, and 1.5.4. Remove the package from projects and replace it with trusted alternatives. Monitor vendor advisories for updates or official fixes. Since this is a malicious package, consider auditing dependencies for similar typosquatting or impersonation attempts.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10482
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a55ffa068715ace432f7142
Added to database: 07/14/2026, 09:21:36 UTC
Last enriched: 07/14/2026, 09:53:04 UTC
Last updated: 07/21/2026, 21:24:13 UTC
Views: 9
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.