Vulnerabilities

CVE-2026-45066

Medium 6.1 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-07-14
Last modified
2026-07-16
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 22 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Sensiolabs Symfony ≥ 6.1.0, < 6.4.40 Affected
Sensiolabs Symfony ≥ 7.0.0, < 7.4.12 Affected
Sensiolabs Symfony ≥ 8.0.0, < 8.0.12 Affected
symfony html-sanitizer (Packagist) ≥ 6.1.0, < 6.4.40 Affected
symfony html-sanitizer (Packagist) ≥ 7.0.0, < 7.4.12 Affected
symfony html-sanitizer (Packagist) ≥ 8.0.0, < 8.0.12 Affected
symfony symfony (Packagist) ≥ 6.1.0, < 6.4.40 Affected
symfony symfony (Packagist) ≥ 7.0.0, < 7.4.12 Affected
symfony symfony (Packagist) ≥ 8.0.0, < 8.0.12 Affected

Weakness type

  • CWE-184: Incomplete List of Disallowed Inputs

    The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes p…

  • CWE-436: Interpretation Conflict

    Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities