{"id":"CVE-2026-45066","published":"2026-07-14T17:53:49Z","modified":"2026-07-16T14:29:30Z","title":"Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and <area>…","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.19689,"provenance":"source"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-436","name":"Interpretation Conflict"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-qc95-4862-92fh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/d506b556d3d3906f3e8660ad82257ce87edbaac4","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v6.4.40","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v7.4.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v8.0.12","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":3.94},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 6.1.0-BETA1, < 6.4.40",">= 7.0.0-BETA1, < 7.4.12",">= 8.0.0-BETA1, < 8.0.12"]},{"vendor":"symfony","product":"html-sanitizer","versions":[">= 6.1.0-BETA1, < 6.4.40",">= 7.0.0-BETA1, < 7.4.12",">= 8.0.0-BETA1, < 8.0.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-16T14:29:18.947584Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/html-sanitizer","vulnerableRanges":[">=6.1.0, <6.4.40",">=7.0.0, <7.4.12",">=8.0.0, <8.0.12"],"patched":["6.4.40","7.4.12","8.0.12"],"from":["GHSA-qc95-4862-92fh"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=6.1.0, <6.4.40",">=7.0.0, <7.4.12",">=8.0.0, <8.0.12"],"patched":["6.4.40","7.4.12","8.0.12"],"from":["GHSA-qc95-4862-92fh"],"provenance":"source"}],"summary":{"text":"The HtmlSanitizer component of the Symfony PHP framework (versions from 6.1.0-BETA1 up to but not including 6.4.40, 7.4.12, and 8.0.12) mishandles URL sanitization, because its URL parser follows RFC 3986 while browsers follow WHATWG URL parsing, and <area href> values are checked against the media-host policy instead of the link-host policy. An attacker who can supply HTML that is passed through the sanitizer, with user interaction required (a victim must act on the crafted content), can get off-allowlist URLs past allowLinkHosts() or allowMediaHosts() in the sanitized output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:09Z"},"euvd":{"id":"EUVD-2026-44339","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-symfony-cve-2026-45066","children":[{"from":"CVE-2026-45066","to":"CVE-2026-118517","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The guard added for CVE-2026-45066 missed the zero-slash form, and the host 0 was also skipped because PHP treats it as falsy.","from":"CVE.org","in":"CVE-2026-118517"},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php"],"commits":["https://github.com/symfony/symfony/commit/f2f47d2eef6c2552c6c5c24953caa94f7901cb43","https://github.com/symfony/symfony/commit/d506b556d3d3906f3e8660ad82257ce87edbaac4"],"basis":"shared function","functions":["sanitize"]}]},{"from":"CVE-2026-45066","to":"CVE-2026-48760","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/html-sanitizer","fromFixed":"6.4.40","toFixed":"6.4.41","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/html-sanitizer","fromFixed":"7.4.12","toFixed":"7.4.13","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php"],"commits":["https://github.com/symfony/symfony/commit/d506b556d3d3906f3e8660ad82257ce87edbaac4","https://github.com/symfony/symfony/commit/b21a626fd90f5c12d2db432c629eed3e780ba2f8"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-45064","published":"2026-07-14","fixed":"8.0.12","kev":false},{"cve":"CVE-2026-45066","published":"2026-07-14","fixed":"8.0.12","kev":false},{"cve":"CVE-2026-45753","published":"2026-07-14","fixed":"8.0.12","kev":false},{"cve":"CVE-2026-48760","published":"2026-07-14","fixed":"8.0.13","kev":false},{"cve":"CVE-2026-48761","published":"2026-07-14","fixed":"8.0.13","kev":false,"link":{"from":"CVE-2026-45066","to":"CVE-2026-48761","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/html-sanitizer","fromFixed":"6.4.40","toFixed":"6.4.41","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/html-sanitizer","fromFixed":"7.4.12","toFixed":"7.4.13","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/UrlAttributeSanitizer.php"],"commits":["https://github.com/symfony/symfony/commit/d506b556d3d3906f3e8660ad82257ce87edbaac4","https://github.com/symfony/symfony/commit/069a70f9f26e61e9de3b7f9a864a86ed24b36bd0"],"basis":"shared file"}]}}],"package":"Packagist:symfony/html-sanitizer"}}