Advisories / composer / symfony/html-sanitizer / CVE-2026-45066
Symfony has an HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and <area> Misclassification (CVE-2026-45066)
CVE-2026-45066 GHSA-qc95-4862-92fh Published 27 May 2026
Affects 2 packages. Each has a fixed release.
$ composer require symfony/html-sanitizer:^6.4.40 $ composer require symfony/html-sanitizer:^7.4.12 $ composer require symfony/html-sanitizer:^8.0.12 $ composer require symfony/symfony:^6.4.40 $ composer require symfony/symfony:^7.4.12 $ composer require symfony/symfony:^8.0.12
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| symfony/html-sanitizer | ≥ 6.1.0, < 6.4.40≥ 7.0.0, < 7.4.12≥ 8.0.0, < 8.0.12 | 6.4.407.4.128.0.12 |
| symfony/symfony | ≥ 6.1.0, < 6.4.40≥ 7.0.0, < 7.4.12≥ 8.0.0, < 8.0.12 | 6.4.407.4.128.0.12 |
Check a site from its project folder:
composer show symfony/html-sanitizer
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
Questions
Which version of symfony/html-sanitizer is safe from CVE-2026-45066?
8.0.12 and later. Versions affected: ≥ 6.1.0, < 6.4.40, ≥ 7.0.0, < 7.4.12, ≥ 8.0.0, < 8.0.12.
Which version of symfony/symfony is safe from CVE-2026-45066?
8.0.12 and later. Versions affected: ≥ 6.1.0, < 6.4.40, ≥ 7.0.0, < 7.4.12, ≥ 8.0.0, < 8.0.12.