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

Published Nov 4, 2026
·
Updated

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

Other sources

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.

— MITRE

Affected Software

26 affected componentsFixes available
composer/symfony/symfony>=6.1.0, <6.2.0
composer/symfony/symfony>=6.2.0, <6.3.0
composer/symfony/symfony>=6.3.0, <6.4.0
composer/symfony/symfony>=6.4.0, <6.4.50
6.4.50
composer/symfony/symfony>=7.0.0, <7.1.0
composer/symfony/symfony>=7.1.0, <7.2.0
composer/symfony/symfony>=7.2.0, <7.3.0
composer/symfony/symfony>=7.3.0, <7.4.0
composer/symfony/symfony>=7.4.0, <7.4.23
7.4.23
composer/symfony/symfony>=8.0.0, <8.1.0
composer/symfony/symfony>=8.1.0, <8.1.11
8.1.11
composer/symfony/html-sanitizer>=6.1.0, <6.2.0
composer/symfony/html-sanitizer>=6.2.0, <6.3.0
composer/symfony/html-sanitizer>=6.3.0, <6.4.0
composer/symfony/html-sanitizer>=6.4.0, <6.4.50
6.4.50
composer/symfony/html-sanitizer>=7.0.0, <7.1.0
composer/symfony/html-sanitizer>=7.1.0, <7.2.0
composer/symfony/html-sanitizer>=7.2.0, <7.3.0
composer/symfony/html-sanitizer>=7.3.0, <7.4.0
composer/symfony/html-sanitizer>=7.4.0, <7.4.23
7.4.23
composer/symfony/html-sanitizer>=8.0.0, <8.1.0
composer/symfony/html-sanitizer>=8.1.0, <8.1.11
8.1.11
debian/symfony*
debian/symfony*
debian/symfony*
debian/symfony<=5.4.53+dfsg-0+deb12u1, <=6.4.41+dfsg-0+deb13u1, <=6.4.49+dfsg-0+deb13u1, <=7.4.22+dfsg-1
7.4.23+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 6.4.50
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.23
  3. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 8.1.11
  4. Upgrade

    Upgrade composer/symfony/html-sanitizer to a version that resolves this vulnerability.

    Fixed in 6.4.50
  5. Upgrade

    Upgrade composer/symfony/html-sanitizer to a version that resolves this vulnerability.

    Fixed in 7.4.23
  6. Upgrade

    Upgrade composer/symfony/html-sanitizer to a version that resolves this vulnerability.

    Fixed in 8.1.11
  7. Upgrade

    Upgrade debian/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.23+dfsg-1
  8. Upgrade

    Upgrade Symfony HtmlSanitizer to a version that resolves this vulnerability.

    Fixed in 6.4.50
  9. Upgrade

    Upgrade Symfony HtmlSanitizer to a version that resolves this vulnerability.

    Fixed in 7.4.23
  10. Upgrade

    Upgrade Symfony HtmlSanitizer to a version that resolves this vulnerability.

    Fixed in 8.1.11

Event History

Nov 4, 2026
Advisory Published
via Packagist·11:23 AM
Data Sourced
via Packagist·11:23 AM
DescriptionSeverityAffected Software
Nov 5, 2026
CVE Published
via OSV·07:47 AM
Data Sourced
via OSV·07:47 AM
DescriptionAffected Software
CVE Published
via MITRE·04:26 PM
Data Sourced
via MITRE·04:26 PM
DescriptionWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203