Interpretation Conflict in Symfony - CVE-2026-118517
Published: December 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass the host allowlist and retain references to untrusted hosts in sanitized HTML.
The vulnerability exists due to inconsistent URL parsing between Symfony HtmlSanitizer's UrlSanitizer and web browsers when processing link or media URLs with a malformed authority. A remote attacker can supply HTML containing a URL that the sanitizer treats as hostless but a browser resolves to an external host to bypass the configured host allowlist.
Exploitation requires a host allowlist combined with relative links or relative media enabled. The default configuration is not affected.
Affected software
How to mitigate CVE-2026-118517
External References
- https://github.com/symfony/symfony/releases/tag/v8.1.11
- https://github.com/symfony/symfony/commit/fcbbbd05886239efca3f92c016b33378018e29e9
- https://github.com/symfony/symfony/compare/v8.1.10...v8.1.11
- https://github.com/symfony/symfony/releases/tag/v7.4.23
- https://github.com/symfony/symfony/releases/tag/v6.4.50