CVE-2026-117541

svg-sanitizer 0.11.0 before 1.1.0 Uncaught LogicException DoS via sanitize()

Published Oct 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
svg-sanitizer from 0.11.0 before 1.1.0 contains an uncaught exception vulnerability that allows attackers to crash callers by submitting well-formed XML without a top-level svg root. Attackers can supply documents with a non-svg root or nested svg element, causing Sanitizer::sanitize() to throw a LogicException instead of returning false, crashing workers or bypassing upload rejection.

Analysis

AI-generated

Technical impact

svg-sanitizer versions 0.11.0 through 1.0.x contain an uncaught exception that occurs when Sanitizer::sanitize() processes well‑formed XML documents lacking a top‑level svg element. The method throws a LogicException instead of returning false, which causes calling processes to crash or to continue processing malformed data. The resulting loss of availability is consistent with a denial-of-service attack. The vulnerability is formally classified as CWE‑248, Uncaught Exception.

Affected Systems

The affected product is svg‑sanitizer, developed by darylldoyle. All releases from 0.11.0 up to, but not including, 1.1.0 are susceptible. No specific non‑product versions are listed beyond those ranges.

Risk and Exploitability

The CVSS score is 6.9, indicating a moderate risk. EPSS data is not available, and the issue is not listed in CISA's KEV catalog. The attack requires supplying a specially crafted XML document to a system that uses svg‑sanitizer without additional exception handling. Because the trigger is well‑formed XML lacking a top‑level svg root, attackers could embed the payload in any context that submits XML to the sanitizer, such as upload services or content pipelines. The exploit surface is therefore likely to be exposed in environments where svg‑sanitizer is called directly or indirectly with user‑supplied content.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade svg‑sanitizer to version 1.1.0 or later, which contains the exception handling fix.
  • Wrap calls to Sanitizer::sanitize() in a try/except block to catch LogicException and prevent worker crashes or allow graceful failure.
  • Validate incoming XML to ensure a top‑level svg element before invoking sanitize(), filtering or rejecting malformed documents.

Generated by OpenCVE AI on October 27, 2026 at 12:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description svg-sanitizer from 0.11.0 before 1.1.0 contains an uncaught exception vulnerability that allows attackers to crash callers by submitting well-formed XML without a top-level svg root. Attackers can supply documents with a non-svg root or nested svg element, causing Sanitizer::sanitize() to throw a LogicException instead of returning false, crashing workers or bypassing upload rejection.
Title svg-sanitizer 0.11.0 before 1.1.0 Uncaught LogicException DoS via sanitize()
First Time appeared Svg-sanitizer Project
Svg-sanitizer Project svg-sanitizer
Weaknesses CWE-248
CPEs cpe:2.3:a:svg-sanitizer_project:svg-sanitizer:*:*:*:*:*:*:*:*
Vendors & Products Svg-sanitizer Project
Svg-sanitizer Project svg-sanitizer
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 27, 2026, 2:12 PM
Reserved
Oct 27, 2026, 10:33 AM
Status
Deferred
Published
Oct 27, 2026, 11:17 AM
Modified
Oct 27, 2026, 2:16 PM