CVE-2026-45066

Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and <area> Misclassification

State
Published
Severity
2.3 Low
Published
Jul 14, 2026
Updated
Jul 16, 2026
Reserved
May 8, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.02.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NGitHub_M

Weaknesses

  • CWE-184 Incomplete List of Disallowed Inputs
  • CWE-436 Interpretation Conflict

Affected Products

ProductVersions
symfonysymfony
  • >= 6.1.0-BETA1, < 6.4.40Affected
  • >= 7.0.0-BETA1, < 7.4.12Affected
  • >= 8.0.0-BETA1, < 8.0.12Affected
html-sanitizersymfony
  • >= 6.1.0-BETA1, < 6.4.40Affected
  • >= 7.0.0-BETA1, < 7.4.12Affected
  • >= 8.0.0-BETA1, < 8.0.12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.