CVE-2026-121443

svg-sanitizer from 1.1.0 before 1.1.1 Denial of Service via Unclosed Tag

Published Nov 3, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
svg-sanitizer from 1.1.0 before 1.1.1 contains a denial of service vulnerability that allows remote attackers to crash requests by submitting SVG input ending inside an unclosed tag. Attackers can upload truncated input like a single '<' to trigger an uncaught ValueError from strpos() in hasElementWithTooManyAttributes() or hasInternalDtdSubset() on PHP 8, failing the request.

Analysis

AI-generated

Technical impact

svg-sanitizer releases 1.1.0 through 1.1.0 prior to 1.1.1 contain a flaw that allows remote attackers to crash requests by submitting SVG data with an unclosed tag. The sanitizer's internal functions hasElementWithTooManyAttributes() or hasInternalDtdSubset() trigger an uncaught ValueError on PHP 8 when encountering a lone '<', terminating the request and causing a denial of service. This weakness is an example of improper input validation (CWE-248).

Affected Systems

The vulnerability is found in the darylldoyle svg-sanitizer package. Versions older than 1.1.1, specifically 1.1.0 and prior, are affected. All systems that use these versions of svg-sanitizer to process external SVG files are potentially impacted. The vulnerability is tied to the PHP implementation of the package.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity. The EPSS score is not available, so the current exploitation probability is unknown, but the vulnerability is not listed in the CISA KEV catalog. Attackers can trigger the flaw remotely by submitting a malformed SVG to any endpoint that processes SVG input, without needing authentication or elevated privileges. Because the failure surfaces as a request crash on the application side, the impact is limited to service availability for the affected component, though repeated exploitation could degrade overall system availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to svg-sanitizer version 1.1.1 or later, which contains the fix for the unclosed tag handling and the ValueError exception.
  • If an immediate upgrade is not possible, validate incoming SVG files for well‑formedness before invoking the sanitizer, rejecting any payload that contains unclosed tags or malformed XML.
  • As a temporary workaround, disable DTD processing in PHP's XML handling or modify the sanitizer to catch internal DTD errors, preventing the ValueError from propagating.

Generated by OpenCVE AI on November 3, 2026 at 16:26 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': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Darylldoyle
Darylldoyle svg-sanitizer
Vendors & Products Darylldoyle
Darylldoyle svg-sanitizer
Type Values Removed Values Added
Description svg-sanitizer from 1.1.0 before 1.1.1 contains a denial of service vulnerability that allows remote attackers to crash requests by submitting SVG input ending inside an unclosed tag. Attackers can upload truncated input like a single '<' to trigger an uncaught ValueError from strpos() in hasElementWithTooManyAttributes() or hasInternalDtdSubset() on PHP 8, failing the request.
Title svg-sanitizer from 1.1.0 before 1.1.1 Denial of Service via Unclosed Tag
First Time appeared Drupal
Drupal svg Sanitizer
Weaknesses CWE-248
CPEs cpe:2.3:a:drupal:svg_sanitizer:*:*:*:*:*:*:*:*
Vendors & Products Drupal
Drupal 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
Nov 9, 2026, 3:04 PM
Reserved
Nov 3, 2026, 12:32 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 9, 2026, 3:17 PM