Symfony: HtmlSanitizer URL Attributes Pass Through BiDi Override Characters → Visual href Spoofing
symfony · symfony html-sanitizer
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/html-sanitizer Packagist |
|
|
| symfony/symfony Packagist |
symfony · symfony html-sanitizer
| Product | Affected | Fixed in |
|---|---|---|
| symfony/html-sanitizer Packagist |
|
|
| symfony/symfony Packagist |
≥ 6.1.0 · < 6.4.40≥ 7.0.0 · < 7.4.12≥ 8.0.0 · < 8.0.12
|
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, UrlSanitizer::parse() passes Unicode explicit-direction BiDi formatting characters through into sanitized href and src attributes, allowing sanitized content to display a link destination that visually differs from the actual destination and enabling phishing-style visual spoofing. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
From the CVE record · GitHub_M
UrlSanitizer::parse() allows Unicode bidirectional formatting characters into sanitized href and src attributes. When someone views affected sanitized content, a link destination can appear different from its actual destination, enabling phishing-style visual spoofing. The input does not specify authentication requirements.
Check applications using Packagist symfony/html-sanitizer or symfony/symfony versions >=6.1.0 <6.4.40, >=7.0.0 <7.4.12, or >=8.0.0 <8.0.12.