Incomplete List of Disallowed Inputs Affecting symfony/html-sanitizer package, versions >=6.1, <6.4.50>=7.0.0, <7.4.23>=8.0.0, <8.1.11


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.26% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYHTMLSANITIZER-23188853
  • published1 Dec 2026
  • disclosed5 Nov 2026
  • creditIlia Alshanetsky, Bruno Dias, Catarina Amorim

Introduced: 5 Nov 2026

NewCVE-2026-118517  (opens in a new tab)
CWE-184  (opens in a new tab)

How to fix?

Upgrade symfony/html-sanitizer to version 6.4.50, 7.4.23, 8.1.11 or higher.

Overview

symfony/html-sanitizer is a Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs via UrlSanitizer in the HtmlSanitizer component, which parses URLs using league/uri (RFC 3986) while browsers follow the WHATWG URL standard, allowing the allowLinkHosts() and allowMediaHosts() allow-list checks to be bypassed. For URLs without a well-formed authority - such as http:evil.example, ///evil.example, or https://://evil.example/ - RFC 3986 yields a null host, causing the sanitizer to skip the host check, while browsers resolve these forms to the attacker-controlled host. Additionally, the host 0 was treated as falsy by PHP and skipped against the allow-list, while browsers resolve it to 0.0.0.0. An attacker can supply such a URL to have an untrusted host referenced in sanitized output.

Note: This is only exploitable when a host allow-list is combined with allowRelativeLinks(true) or allowRelativeMedias(true). The default configuration is not affected.

CVSS Base Scores

version 4.0
version 3.1