# CVE-2026-118517: HtmlSanitizer Host Allow-Lists Bypassed via Malformed URL Authorities: Incomplete Fix for CVE-2026-45066

DevFeed: [CVE-2026-118517: HtmlSanitizer Host Allow-Lists Bypassed via Malformed URL Authorities: Incomplete Fix for CVE-2026-45066](<https://devfeed.tech/articles/cve-2026-118517-htmlsanitizer-host-allow-lists-bypassed-via-malformed-url-authorities-incomplete-fix-for-cve-2026-45066-116456.md>)

Original publisher: [Read original article](<https://symfony.com/blog/cve-2026-118517-htmlsanitizer-host-allow-lists-bypassed-via-malformed-url-authorities-incomplete-fix-for-cve-2026-45066>)

Author: Fabien Potencier

Published: 2026-11-04T11:54:00Z

Content type: news

Language: en

Sources: [Symfony](<https://devfeed.tech/sources/symfony-blog.md>)

Topics: [cve remediation](<https://devfeed.tech/topics/cve-remediation.md>), [Symfony](<https://devfeed.tech/topics/symfony.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [7-4](<https://devfeed.tech/tags/7-4.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [bypass](<https://devfeed.tech/tags/bypass.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [content-management](<https://devfeed.tech/tags/content-management.md>), [cve](<https://devfeed.tech/tags/cve.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [ftp](<https://devfeed.tech/tags/ftp.md>), [html](<https://devfeed.tech/tags/html.md>), [http](<https://devfeed.tech/tags/http.md>), [https](<https://devfeed.tech/tags/https.md>), [issue](<https://devfeed.tech/tags/issue.md>), [links](<https://devfeed.tech/tags/links.md>), [media](<https://devfeed.tech/tags/media.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [sanitizer](<https://devfeed.tech/tags/sanitizer.md>), [security](<https://devfeed.tech/tags/security.md>), [symfony](<https://devfeed.tech/tags/symfony.md>), [url](<https://devfeed.tech/tags/url.md>)

## AI overview

Symfony HTML Sanitizer's host allow-list can be bypassed when `allowRelativeLinks(true)` is combined with an allowed-host list. `league/uri` follows RFC 3986, which treats forms such as `http:evil.example` as hostless; browsers may interpret the same URL as navigation to `http://evil.example/`. The excerpt also identifies bypasses using three or more slashes and an empty authority, and says the media policy is similarly affected with `allowRelativeMedias(true)`. The default configuration is unaffected because relative links are disabled; the issue is rated low on that basis. Fixes require exactly `//` after special schemes, reject three-or-more-slash scheme-relative URLs and empty authorities, and check host `0` against the allow-list. Empty-authority URLs, including bare `https://`, are now dropped under relative-link mode. Affected ranges are 6.1-<6.4.50, 7-<7.4.23 and 8-<8.1.11; fixed releases are 6.4.50, 7.4.23 and 8.1.11.

## Source excerpt

Affected versions Symfony HTML Sanitizer versions >=6.1, <6.4.50, >=7, <7.4.23, >=8, <8.1.11 are affected by this security issue. The issue has been fixed in Symfony HTML Sanitizer 6.4.50, 7.4.23, 8.1.11. Description UrlSanitizer parses...