CVE-2026-121446

svg-sanitizer 0.5.0 before 1.1.0 Incomplete url() Filtering in SVG Attributes

Published Nov 3, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
svg-sanitizer from 0.5.0 before 1.1.0 contains an incomplete filtering vulnerability that allows attackers to bypass remote URL removal by using CSS escape sequences inside url() in SVG presentation attributes. Attackers can supply SVG files with attributes like fill containing escaped slashes that browsers resolve to remote URLs, triggering external requests and enabling data exfiltration.

Analysis

AI-generated

Technical impact

The vulnerability lies in svg‑sanitizer versions 0.5.0 through 1.0.x, where the library does not fully filter url() constructs found in SVG presentation attributes. By inserting CSS escape sequences into a url() value, an attacker can craft SVG files that include attributes such as fill with escaped slashes. The browser’s URL resolver interprets these escaped values as a real remote URL, thus triggering an outbound request from the target environment.

Affected Systems

All instances of darylldoyle svg‑sanitizer are affected. Any deployment using launch versions 0.5.0 up through 1.0.x remains vulnerable; only versions 1.1.0 and later receive the fix that implements complete url() sanitization.

Risk and Exploitability

The CVSS score of 5.3 reflects a moderate risk, and the EPSS score is not available. The vulnerability is not listed in CISA KEV. Exploitation requires that an attacker supply or host the malicious SVG such that the affected system or a user’s browser parses it. A successful craft can force the browser to perform an outbound HTTP request, which may leak internal data or use the target as a proxy. Because the bypass relies solely on SVG attribute manipulation, the vulnerability is accessible to attackers who can inject SVG payloads, but there is no requirement for privileged execution on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade svg-sanitizer to version 1.1.0 or newer to apply the url() sanitization fix.
  • Validate or sanitize SVG content to reject url() values that contain CSS escape sequences or other non‑literal URLs.
  • Configure application or web security controls to block or restrict outbound HTTP requests triggered from rendered SVG content.

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
Metrics ssvc

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

Type Values Removed Values Added
Description svg-sanitizer from 0.5.0 before 1.1.0 contains an incomplete filtering vulnerability that allows attackers to bypass remote URL removal by using CSS escape sequences inside url() in SVG presentation attributes. Attackers can supply SVG files with attributes like fill containing escaped slashes that browsers resolve to remote URLs, triggering external requests and enabling data exfiltration.
Title svg-sanitizer 0.5.0 before 1.1.0 Incomplete url() Filtering in SVG Attributes
First Time appeared Drupal
Drupal svg Sanitizer
Weaknesses CWE-791
CPEs cpe:2.3:a:drupal:svg_sanitizer:*:*:*:*:*:*:*:*
Vendors & Products Drupal
Drupal svg Sanitizer
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-791

    Incomplete Filtering of Special Elements

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 7, 2026, 3:04 AM
Reserved
Nov 3, 2026, 12:33 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 7, 2026, 4:17 AM