All vulnerabilities

Servers and applications

CVE-2026-45066

HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and <area> Misclassification

Severity
Medium
Published
20 May 2026
Last changed
20 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
6.4.40, 7.4.12, 8.0.12
Exploit chance
0.3% in the next 30 daysHigher than 27% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Incomplete deny list (CWE-184)CWE-436
Also known as
GHSA-qc95-4862-92fh
Sources
Project advisories (GitHub)

Description

symfony/html-sanitizer lets applications sanitise untrusted HTML. The configuration methods allowLinkHosts([...]) and allowLinkSchemes([...]) are intended to restrict targets to an allowlist of hosts/schemes; allowMediaHosts() / allowMediaSchemes() do the same for etc.

Three distinct bypasses allow a content author to smuggle off-allowlist URLs past these checks. First, UrlSanitizer::parse() parses the input following RFC-3986, while browsers follow the WHATWG URL Standard which normalises \ to / before parsing the authority of "special" schemes; so an input like https://evil\@trusted.com/ parses with host trusted.com server-side but navigates to https://evil/ in the browser. Second, WHATWG collapses any run of / after the scheme into //, while RFC-3986 does not; so https:/evil.com/ and https:///evil.com/ parse as host-less (skipping the host allowlist) but resolve to evil.com in the browser.

From symfony/symfony's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SymfonyServers and applications · github:symfony/symfony
  • From 6.1 before 6.4.40
  • From 7 before 7.4.12
  • From 8 before 8.0.12

About Symfony

PHP web application framework for MVC applications

From Wikidata, CC0 1.0.
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
321,952Packagist, 15 Nov 2026
Total downloads (Packagist)
88,437,595Packagist, 15 Nov 2026
GitHub stars
31,439GitHub, 15 Nov 2026
Forks
9,949GitHub, 15 Nov 2026
Latest release
v8.2.0-BETA2GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Developer
SensioLabsWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
22 Oct 2005Wikidata
First published on GitHub
4 Jan 2010GitHub

Release lines

ReleaseLatestSecurity fixes
8.18.1.11Until 31 Jan 2027
8.08.0.16Ended 31 Jul 2026
7.4 (LTS)LTS7.4.23Until 30 Nov 2029
7.37.3.11Ended 31 Jan 2026
7.27.2.9Ended 31 Jul 2025
7.17.1.11Ended 31 Jan 2025

From endoflife.date.

References