CVE-2026-121445

svg-sanitizer 1.0.0 before 1.1.0 ReDoS and Fail-Open via image-set CSS Stripping

Published Nov 3, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
darylldoyle svg-sanitizer from 1.0.0 before 1.1.0 contains a regular expression denial of service vulnerability in the image-set pattern of stripRemoteCssTokens() when removeRemoteReferences is enabled. Attackers can submit SVGs with many unclosed image-set tokens to exhaust CPU, or trigger PCRE limits causing sanitize() to throw a TypeError and leave unsanitized content.

Analysis

AI-generated

Technical impact

The vulnerability resides in the regular expression used within the stripRemoteCssTokens() function of svg-sanitizer versions 1.0.0 through 1.0.x. When the removeRemoteReferences flag is enabled, an attacker can craft SVG files that contain a large quantity of unclosed image‑set tokens. The regex engine that processes these tokens becomes overloaded, leading to CPU exhaustion or a denial‑of‑service loop. Additionally, the regex may hit internal PCRE limits, causing sanitize() to throw a TypeError and abort sanitization, thus potentially leaving the SVG unsanitized and creating a vector for downstream XSS or injection attacks. The primary impact is service disruption and a breach of content integrity.

Affected Systems

Deployments of darylldoyle's svg‑sanitizer before version 1.1.0, including all 1.0.x releases used within Drupal or independently, are affected.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, implying limited public exploitation to date. Attackers would need to supply a crafted SVG document to a system that invokes svg‑sanitizer with removeRemoteReferences enabled, which typically occurs via a web upload or API that accepts SVG content. The attack path is remote and can be triggered from an untrusted source, potentially exhausting server resources or causing unsanitized content to be delivered.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade svg-sanitizer to version 1.1.0 or later, which removes the vulnerable regex and enforces bounds on image‑set parsing.
  • If an upgrade cannot be performed immediately, disable the removeRemoteReferences option so that sanitize() does not execute the problematic regex path.
  • Apply input validation by limiting the size or number of image‑set tokens in SVG uploads and monitor CPU usage for abnormal spikes that may indicate a denial‑of‑service attempt.

Generated by OpenCVE AI on November 3, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Darylldoyle
Darylldoyle svg-sanitizer
Vendors & Products Darylldoyle
Darylldoyle svg-sanitizer
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description darylldoyle svg-sanitizer from 1.0.0 before 1.1.0 contains a regular expression denial of service vulnerability in the image-set pattern of stripRemoteCssTokens() when removeRemoteReferences is enabled. Attackers can submit SVGs with many unclosed image-set tokens to exhaust CPU, or trigger PCRE limits causing sanitize() to throw a TypeError and leave unsanitized content.
Title svg-sanitizer 1.0.0 before 1.1.0 ReDoS and Fail-Open via image-set CSS Stripping
First Time appeared Drupal
Drupal svg Sanitizer
Weaknesses CWE-754
CPEs cpe:2.3:a:drupal:svg_sanitizer:*:*:*:*:*:*:*:*
Vendors & Products Drupal
Drupal svg Sanitizer
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 4:56 PM
Reserved
Nov 3, 2026, 12:32 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 3, 2026, 5:18 PM