CVE-2026-73650: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in svg svgo
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.3, 3.3.4, and 4.0.2, the removeScripts plugin, named removeScriptElement in versions 1 through 3, can leave executable content in optimized SVGs because it does not remove namespaced or prefixed script elements such as <svg:script> and, in versions 3 and 4, matches JavaScript URIs case sensitively. Applications that process untrusted SVG input with this plugin enabled and serve the result can allow scripts to execute when another user opens the SVG, exposing local storage or cookies. This issue is fixed in versions 2.8.3, 3.3.4, and 4.0.2.
AI Analysis
Technical Summary
The svgo Node.js library, used for optimizing SVG files, contains a cross-site scripting vulnerability in its removeScripts plugin (removeScriptElement in versions 1 through 3). This plugin does not remove namespaced or prefixed script elements such as <svg:script> and, in versions 3 and 4, matches JavaScript URIs case sensitively, leaving executable content in optimized SVGs. Applications that process untrusted SVG input with this plugin enabled and serve the output may allow script execution when another user opens the SVG, exposing local storage or cookies. The vulnerability affects versions from 1.0.0 up to but not including 2.8.3, 3.3.4, and 4.0.2, where the issue is fixed.
Potential Impact
Exploitation of this vulnerability can lead to cross-site scripting attacks, allowing an attacker to execute scripts in the context of users viewing the optimized SVG files. This can result in exposure of sensitive information such as local storage data or cookies. The CVSS score of 8.2 indicates a high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high confidentiality impact.
Mitigation Recommendations
A fix is available in svgo versions 2.8.3, 3.3.4, and 4.0.2. Users and developers should upgrade to one of these versions or later to remediate this vulnerability. Patch status is confirmed by the version information specifying the fixed versions. No additional mitigation steps are indicated in the advisory.
CVE-2026-73650: 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.3, 3.3.4, and 4.0.2, the removeScripts plugin, named removeScriptElement in versions 1 through 3, can leave executable content in optimized SVGs because it does not remove namespaced or prefixed script elements such as <svg:script> and, in versions 3 and 4, matches JavaScript URIs case sensitively. Applications that process untrusted SVG input with this plugin enabled and serve the result can allow scripts to execute when another user opens the SVG, exposing local storage or cookies. This issue is fixed in versions 2.8.3, 3.3.4, and 4.0.2.
CVSS v3.1
Score 8.2high
Affected software
svg
svgo
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 svgo Node.js library, used for optimizing SVG files, contains a cross-site scripting vulnerability in its removeScripts plugin (removeScriptElement in versions 1 through 3). This plugin does not remove namespaced or prefixed script elements such as <svg:script> and, in versions 3 and 4, matches JavaScript URIs case sensitively, leaving executable content in optimized SVGs. Applications that process untrusted SVG input with this plugin enabled and serve the output may allow script execution when another user opens the SVG, exposing local storage or cookies. The vulnerability affects versions from 1.0.0 up to but not including 2.8.3, 3.3.4, and 4.0.2, where the issue is fixed.
Potential Impact
Exploitation of this vulnerability can lead to cross-site scripting attacks, allowing an attacker to execute scripts in the context of users viewing the optimized SVG files. This can result in exposure of sensitive information such as local storage data or cookies. The CVSS score of 8.2 indicates a high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high confidentiality impact.
Mitigation Recommendations
A fix is available in svgo versions 2.8.3, 3.3.4, and 4.0.2. Users and developers should upgrade to one of these versions or later to remediate this vulnerability. Patch status is confirmed by the version information specifying the fixed versions. No additional mitigation steps are indicated in the advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-13T14:04:09.604Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7e0ff3bf8831d539a34e54
Added to database: 08/13/2026, 18:41:55 UTC
Last enriched: 08/21/2026, 13:06:06 UTC
Last updated: 09/27/2026, 01:47:44 UTC
Views: 65
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.