Technical impact
The Symfony HtmlSanitizer component interprets URLs using league/uri following RFC 3986, which differs from the WHATWG URL standard used by browsers. As a result, URLs without a well‑formed authority—such as http:evil.example, ///evil.example, or https://://evil.example/—are parsed without a host by the sanitizer. When a host allow‑list is combined with allowRelativeLinks(true) or allowRelativeMedias(true), this flaw permits untrusted hosts to appear in the sanitized output, potentially enabling injection of malicious content. The CVSS score of 2.3 classifies this vulnerability as low severity, and no arbitrary code execution is possible.
Affected Systems
The issue affects Symfony releases 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. The vendor is SensioLabs. The default configuration is not impacted; only setups that explicitly enable allowRelativeLinks or allowRelativeMedias in combination with a host allow‑list are vulnerable.
Risk and Exploitability
The CVSS score of 2.3 classifies this vulnerability as low severity. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, indicating a low likelihood of exploitation. Inferred attack scenarios involve an attacker delivering crafted URLs to an application that forwards user input to the HtmlSanitizer with allow‑list logic enabled. Because the flaw does not allow arbitrary code execution, the risk is confined to the inadvertent inclusion of untrusted hosts in the rendered output.