CVE Catalog

CVE-2026-45066

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.29%

21th percentile - higher than 21% of all known CVEs

Summary

A vulnerability in Symfony HtmlSanitizer allows bypassing the allowed host list due to differences in URL parsing between RFC 3986 and WHATWG, and incorrect checking of the <area href> tag against the media policy instead of the link policy. Affects versions from 6.1.0-BETA1 to 6.4.40, 7.4.12, and 8.0.12.

Risk Assessment

An attacker can inject malicious URLs into HTML content that are considered safe, potentially leading to data leakage or redirects to unauthorized sites.

Recommendation

Immediately update Symfony to version 6.4.40, 7.4.12, or 8.0.12, where this vulnerability is fixed.

Other vulnerabilities in Symfony

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS