Skip to main content
EPSS 0.5%top 57%

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

0
High
VulnerabilityCVE-2026-84370cvecve-2026-84370cwe-79cwe-184
Published: 09/01/2026 (09/01/2026, 20:47:08 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.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

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.4>=3.0.0 <3.3.5>=4.0.0 <4.1.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 12:35:38 UTC

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.

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