CVE-2026-45066
Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, HtmlSanitizer URL sanitization can allow off-allowlist URLs through allowLinkHosts() or allowMediaHosts() because UrlSanitizer::parse() follows RFC 3986 while browsers follow WHATWG URL parsing, and because <area href> is checked against the media policy rather than the link policy. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
How to fix
- sensiolabs symfony6.4.40, 7.4.12, 8.0.12 or later
- symfony/html-sanitizer6.4.40, 7.4.12, 8.0.12 or later
- symfony/symfony6.4.40, 7.4.12, 8.0.12 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sensiolabs symfony | 6.1.0 ≤ v < 6.4.40, 7.0.0 ≤ v < 7.4.12, 8.0.0 ≤ v < 8.0.12 | 6.4.40, 7.4.12, 8.0.12 |
| symfony/html-sanitizerPackagist | 6.1.0 ≤ v < 6.4.40, 7.0.0 ≤ v < 7.4.12, 8.0.0 ≤ v < 8.0.12 | 6.4.40, 7.4.12, 8.0.12 |
| symfony/symfonyPackagist | 6.1.0 ≤ v < 6.4.40, 7.0.0 ≤ v < 7.4.12, 8.0.0 ≤ v < 8.0.12 | 6.4.40, 7.4.12, 8.0.12 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.