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.
Published: 2026-10-27
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service via Uncaught Exception
Action: Apply Security Update
AI Analysis

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.

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

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

History

Tue, 27 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 27 Oct 2026 11:15:00 +0000

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


Subscriptions

Svg-sanitizer Project Svg-sanitizer
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-27T14:12:13.476Z

Reserved: 2026-10-27T10:33:39.046Z

Link: CVE-2026-117541

cve-icon Vulnrichment

Updated: 2026-10-27T13:46:29.440Z

cve-icon NVD

Status : Deferred

Published: 2026-10-27T11:17:35.000

Modified: 2026-10-27T14:16:35.717

Link: CVE-2026-117541

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T12:45:01Z

Weaknesses