Skip to main content
EPSS 0.4%top 65%

CVE-2026-73650: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in svg svgo

0
High
VulnerabilityCVE-2026-73650cvecve-2026-73650cwe-79cwe-184
Published: 08/13/2026 (08/13/2026, 18:08:36 UTC)
Source: CVE Database V5
Vendor/Project: svg
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Affected software

svg

svgo

Affected versions
>=1.0.0 <2.8.3>=3.0.0 <3.3.4>=4.0.0 <4.0.2
svgo
pkg:npm/svgo
Affected versions
<2.8.3>=2.8.3 <3.3.4>=3.3.4 <4.0.2

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/21/2026, 13:06:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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