← Vulnerabilities

LowAdvisoryPHPSymfony

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

Affected

PackageAffected versionsFixed in
composer:symfony/html-sanitizer>= 6.1.0, < 6.4.506.4.50
composer:symfony/html-sanitizer>= 7.0.0, < 7.4.237.4.23
composer:symfony/html-sanitizer>= 8.0.0, < 8.1.118.1.11
composer:symfony/symfony>= 6.1.0, < 6.4.506.4.50
composer:symfony/symfony>= 7.0.0, < 7.4.237.4.23
Show all (6)
PackageAffected versionsFixed in
composer:symfony/symfony>= 8.0.0, < 8.1.118.1.11

UrlSanitizer parses URLs with league/uri, which follows RFC 3986. For a special scheme written with no authority slashes, such as http:evil.example, RFC 3986 yields scheme http, host null and path evil.example. The sanitizer then skips the host allow-list check because the host is null, and with allowRelativeLinks(true) it also waives the rejection of hostless URLs, so the URL is kept. Browsers parse the same string per the WHATWG URL standard. There, // is optional when the scheme differs from…

Read on GitHub Advisory Database

On 12/02/2026, 06:31 AM, GitHub Advisory Database published "Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URLs Without a Well-Formed Authority: Incomplete Fix for CVE-2026-45066" (type: Advisory). Severity is "Low" (low). Related technologies: PHP, Symfony. CVE: CVE-2026-118517, CVE-2026-45066.