Loading advisory.
Loading advisory.
Symfony's HtmlSanitizer URL Attributes Pass Through BiDi Override Characters → Visual href Spoofing
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)…
Published 2026-05-27 20:04 UTC · Modified 2026-09-10 03:51 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| symfony/html-sanitizer | Packagist | >= 6.1.0, < 6.4.40 >= 7.0.0, < 7.4.12 >= 8.0.0, < 8.0.12 versions v6.1.0, v6.1.11, v6.1.9, v6.2.0, v6.2.0-BETA1, v6.2.0-RC1, v6.2.2, v6.2.5, v6.2.7, v6.3.0, v6.3.0-BETA1, v6.3.0-RC1, v6.3.12, v6.3.4, v6.3.7, v6.4.0, v6.4.0-BETA1, v6.4.0-BETA2, v6.4.0-RC1, v6.4.12 and 47 more | 6.4.40, 7.4.12, 8.0.12 | composer require 'symfony/html-sanitizer:>=6.4.40'composer require 'symfony/html-sanitizer:>=7.4.12'composer require 'symfony/html-sanitizer:>=8.0.12' |
| symfony/symfony | Packagist | >= 6.1.0, < 6.4.40 >= 7.0.0, < 7.4.12 >= 8.0.0, < 8.0.12 versions v6.1.0, v6.1.1, v6.1.10, v6.1.11, v6.1.12, v6.1.2, v6.1.3, v6.1.4, v6.1.5, v6.1.6, v6.1.7, v6.1.8, v6.1.9, v6.2.0, v6.2.0-BETA1, v6.2.0-BETA2, v6.2.0-BETA3, v6.2.0-RC1, v6.2.0-RC2, v6.2.1 and 158 more | 6.4.40, 7.4.12, 8.0.12 | composer require 'symfony/symfony:>=6.4.40'composer require 'symfony/symfony:>=7.4.12'composer require 'symfony/symfony:>=8.0.12' |
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 text, so the displayed link can differ arbitrarily from the actual destination: a classic visual-spoofing / phishing primitive against viewers of sanitized content.
UrlSanitizer::parse() now rejects URLs containing the explicit-direction BiDi formatting code points (U+202A–U+202E, U+2066–U+2069) before invoking the underlying URL parser. As an unrelated companion fix in the same patch, spaces inside path/query/fragment are now percent-encoded rather than rejected outright, while spaces in the scheme/authority remain rejected by the post-encoding whitespace check.
The patch for this issue is available here for branch 5.4.
Symfony would like to thank Himanshu Anand for reporting the issue and Nicolas Grekas for providing the fix.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |