Vulnerability in SVGO Node.js Library Allows Executable HTML Injection
CVE-2026-84369

6.1MEDIUM

Key Information:

Vendor

Svg

Status
Vendor
CVE Published:
1 September 2026

What is CVE-2026-84369?

The SVGO library has a vulnerability affecting specific versions that could permit the execution of scripts via attacker-controlled SVG files. The opt-in 'removeScripts' plugin fails to adequately sanitize SVG foreignObject elements, leaving attributes like onload, srcdoc, and others potentially exposed. This flaw can lead to unauthorized script execution within the victim's context when the SVG is viewed in a browser. It is crucial for users to update to the fixed versions 2.8.4, 3.3.5, or 4.1.0 to secure their applications.

Affected Version(s)

svgo >= 1.0.0, < 2.8.4 < 1.0.0, 2.8.4

svgo >= 3.0.0, < 3.3.5 < 3.0.0, 3.3.5

svgo >= 4.0.0, < 4.1.0 < 4.0.0, 4.1.0

References

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.