StraitOfVuln
Latest / CVE-2026-118517

CVE-2026-118517

MediumCVSS 4.3 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

Description

The Symfony HtmlSanitizer component UrlSanitizer parses URLs differently from browsers, allowing the allowLinkHosts() and allowMediaHosts() checks to be bypassed for URLs without a well-formed authority, resulting in untrusted hosts being referenced in sanitized output in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. UrlSanitizer parses URLs with league/uri, which follows RFC 3986, while browsers follow the WHATWG URL standard. For URLs without a well-formed authority, such as http:evil.example, ///evil.example, or https://://evil.example/ the sanitizer finds no host, whereas browsers resolve them to evil.example. The guard added for CVE-2026-45066 missed the zero-slash form, and the host 0 was also skipped because PHP treats it as falsy. This is exploitable when a host allow-list is combined with allowRelativeLinks(true) or allowRelativeMedias(true). The default configuration is not affected.

Details

CVE ID
CVE-2026-118517
Published / updated
05 Nov 2026, 17:17 UTC · last modified 06 Nov 2026, 21:40 UTC
Severity
MEDIUM
CVSS score
4.3 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N · Attack vector: Network
Affected vendor
sensiolabs
Affected products
symfony
Affected versions
symfony: 6.1.0 to before 6.4.50, 7.0.0 to before 7.4.23, 8.0.0 to before 8.1.11
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
symfony 6.4.50, symfony 7.4.23, symfony 8.1.11
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.26% probability of exploitation in the next 30 days · 19% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
596c5446-0ce5-4ba2-aa66-48b3b757a647