CVE-2026-84370: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in svg svgo
Description
SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. From version 1.0.0 until versions 2.8.4, 3.3.5, and 4.1.0, the opt-in removeScripts plugin, named removeScriptElement in versions 2 and 3, incompletely filters executable links in plugins/removeScripts.js and lib/svgo/tools.js. The plugin does not recognize namespace-prefixed SVG anchor elements such as svg:a with href or namespaced *:href values, and it does not remove ASCII tab, line-feed, or carriage-return characters before checking URL schemes. Browsers remove those characters before parsing a scheme, allowing an executable link to pass the plugin's check. When an application processes attacker-controlled SVG input and serves the result in an active browser context, a victim who activates the surviving link can execute script in the SVG's origin, expose data, modify content, or perform actions as the victim. This issue is fixed in versions 2.8.4, 3.3.5, and 4.1.0.
CVSS v3.1
Score 8.2high
Affected software
svg
svgo
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in SVGO's removeScripts plugin (also known as removeScriptElement in versions 2 and 3) arises because it fails to recognize namespace-prefixed SVG anchor elements (e.g., svg:a) with href or namespaced *:href attributes. Additionally, it does not remove ASCII tab, line-feed, or carriage-return characters before validating URL schemes. Since browsers strip these characters before parsing, malicious executable links can bypass the plugin's filtering. When an application processes attacker-controlled SVG files using affected SVGO versions and serves the output in an active browser context, a victim activating the malicious link can have scripts executed in the SVG's origin, potentially exposing data or modifying content. This vulnerability is addressed in SVGO versions 2.8.4, 3.3.5, and 4.1.0.
Potential Impact
Successful exploitation allows an attacker to execute scripts in the origin of the SVG, leading to potential data exposure, content modification, or actions performed with the victim's privileges. The vulnerability requires user interaction (UI:R) and network attack vector (AV:N). It has a high confidentiality impact, limited integrity impact, and no availability impact. The CVSS score is 8.2 (high severity).
Mitigation Recommendations
A fix is available in SVGO versions 2.8.4, 3.3.5, and 4.1.0. Users should upgrade to one of these versions or later to remediate the vulnerability. No vendor advisory content contradicts this; therefore, upgrading is the recommended mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-01T16:27:58.129Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a973b19acd9273b492feea5
Added to database: 09/01/2026, 20:52:41 UTC
Last enriched: 09/07/2026, 12:35:38 UTC
Last updated: 10/17/2026, 18:48:23 UTC
Views: 69
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.
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.