CVE-2026-118517

    Dashboard / Vulnerabilities / CVE-2026-118517

    CVE-2026-118517

    Published: 5 Nov 2026Last Modified: 7 Nov 2026

    Summary: Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URLs Without a Well-Formed Authority (Incomplete Fix for CVE-2026-45066)

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    v6.4.46
    v6.4.45
    v6.4.44
    v6.4.43
    v6.4.42
    v6.4.41
    v6.4.40
    v6.4.39
    v6.4.38
    v6.4.37
    v6.4.36
    v6.4.35
    v6.4.34
    v6.4.33
    v6.4.32
    v6.4.31
    v6.4.30
    v6.4.29
    v6.4.28
    v6.4.27
    v6.4.26
    v6.4.25
    v6.4.24
    v6.4.23
    v6.4.22
    v6.4.21
    v6.4.20
    v6.4.19
    v6.4.18
    v6.4.17
    v6.4.16
    v6.4.15
    v6.4.14
    v6.4.13
    v6.4.12
    v6.4.11
    v6.4.10
    v6.4.9
    v6.4.8
    v6.4.7
    v6.4.6
    v6.4.5
    v6.4.4
    v6.4.3
    v6.4.2
    v6.4.1
    v6.4.0
    v6.4.0-RC2
    v6.4.0-RC1
    v6.4.0-BETA3
    v6.4.0-BETA2
    v6.4.0-BETA1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2026-118517 | CVE-DB