MediumGHSA-h5vq-qfcg-4m6p::1
Symfony's HtmlSanitizer URL Attributes Pass Through BiDi Override Characters → Visual href Spoofing
Affected versions
6.1.0 to before 6.4.40, 7.0.0 to before 7.4.12, 8.0.0 to before 8.0.12 - fixed in 6.4.40Details
### Description `Symfony\Component\HtmlSanitizer\TextSanitizer\UrlSanitizer::parse()` (used by `UrlSanitizer::sanitize()` and therefore by every `HtmlSanitizer` config that allows links or media) accepts URLs that contain Unicode explicit-direction BiDi formatting characters: U+202A–U+202E (LRE / RLE / PDF / LRO / RLO) and U+2066–U+2069 (LRI / RLI / FSI / PDI). These characters are passed through unchanged into the `href` / `src` attributes produced by `HtmlSanitizer`. When the resulting HTML is rendered in a browser, the override characters reverse or alter the visual ordering of the URL tex
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-45064
- https://github.com/symfony/symfony/security/advisories/GHSA-h5vq-qfcg-4m6p
- https://github.com/symfony/symfony/commit/743a435e948b897ef2b5564ac438d4beb95d2526
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/html-sanitizer/CVE-2026-45064.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-45064.yaml
- https://github.com/symfony/symfony
- https://symfony.com/cve-2026-45064
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected