{"id":"CVE-2026-45066","summary":"Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and \u003carea\u003e Misclassification","details":"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 \u003carea href\u003e 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.","aliases":["GHSA-qc95-4862-92fh"],"modified":"2026-10-24T10:53:34.972452029Z","published":"2026-07-14T17:53:49.836Z","database_specific":{"cwe_ids":["CWE-184","CWE-436"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45066.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v6.4.40"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v7.4.12"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v8.0.12"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45066.json"},{"type":"ADVISORY","url":"https://github.com/symfony/symfony/security/advisories/GHSA-qc95-4862-92fh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45066"},{"type":"FIX","url":"https://github.com/symfony/symfony/commit/d506b556d3d3906f3e8660ad82257ce87edbaac4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/symfony/security-http","events":[{"introduced":"7350abfec0228dabb8dafde17d8a821f65c6dd4f"},{"fixed":"816860d96c4fb7ffd7708ae0531ea6e5a1190773"},{"introduced":"f84d7d3c93e6a884908402775199b1f7d55c7be1"},{"fixed":"1fc7ca636cbd2cad29b42cc13c9fd0c681c6efee"},{"introduced":"bea6dc79db4d95c34b77ec27273d812aa64d65be"},{"fixed":"d776945b2dc41c0e609c56c1ef69863ab56856ed"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","range":[{"introduced":"6.1.0"},{"fixed":"6.4.40"}],"source":"CPE_RANGE"},{"range":[{"introduced":"7.0.0"},{"fixed":"7.4.12"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"8.0.0"},{"fixed":"8.0.12"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*"}]}},{"type":"GIT","repo":"https://github.com/symfony/symfony","events":[{"introduced":"c149a0868823d1b0cc01052f4031af2d507c7c9c"},{"fixed":"95a951788e30c45356278f4e4472cbbf552d0eb9"},{"introduced":"d78c5f403d7ee794993660b1d5155536edd36fc1"},{"fixed":"275f5cbccbcc50205206f05e599c4f57009aadb8"},{"introduced":"2e913a829cfbbf9cb38b321bdff1806b44b192eb"},{"fixed":"06d3b2c9a8aeb5d8493738cc51e24f6a1215827c"},{"fixed":"d506b556d3d3906f3e8660ad82257ce87edbaac4"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"6.1.0"},{"fixed":"6.4.40"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","range":[{"introduced":"7.0.0"},{"fixed":"7.4.12"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","range":[{"introduced":"8.0.0"},{"fixed":"8.0.12"}]},{"range":[{"fixed":"d506b556d3d3906f3e8660ad82257ce87edbaac4"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"95a951788e30c45356278f4e4472cbbf552d0eb9"}],"source":"REFERENCES_TAG","original_tag":"v6.4.40"},{"source":"REFERENCES_TAG","original_tag":"v7.4.12","range":[{"fixed":"275f5cbccbcc50205206f05e599c4f57009aadb8"}]},{"range":[{"fixed":"06d3b2c9a8aeb5d8493738cc51e24f6a1215827c"}],"source":"REFERENCES_TAG","original_tag":"v8.0.12"}]}}],"versions":["v6.4.39","v8.0.11","v7.4.11","v7.4.0-BETA1","v8.0.9","v7.4.9","v6.4.34","v8.0.8","v7.4.8","v8.0.6","v7.4.6","v6.4.31","v8.0.4","v7.4.4","v8.0.3","v7.4.3","v8.0.1","v7.4.1","v6.4.30","v7.4.0","v8.0.0","v7.4.0-RC2","v7.4.0-RC1","v6.4.26","v6.4.25","v6.4.24","v6.4.23","v7.3.0","v6.4.22","v7.3.0-RC1","v7.3.0-BETA2","v7.3.0-BETA1","v6.4.21","v6.4.19","v6.4.18","v7.2.1","v6.4.15","v7.2.0-RC1","v7.2.0","v7.2.0-BETA2","v6.4.14","v7.2.0-BETA1","v6.4.13","v6.4.12","v6.4.11","v6.4.9","v6.4.8","v7.1.0-RC1","v7.1.0","v7.1.0-BETA1","v6.4.7","v6.4.4","v6.4.3","v7.0.1","v6.4.0-RC2","v6.4.0","v7.0.0-RC2","v7.0.0","v6.4.0-RC1","v6.4.0-BETA3","v6.4.0-BETA1","v6.3.0-RC1","v6.3.0-BETA1","v6.2.0","v6.2.0-RC1","v6.2.0-BETA3","v6.2.0-BETA1","v6.1.0-RC1","v6.1.0","v8.0.10","v8.0.7","v8.0.5","v8.0.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45066.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}