{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45066","id":"CVE-2026-45066","title":"Symfony: HtmlSanitizer allowLinkHosts() / allowMediaHosts() Bypass via URL-Parser Differentials and <area> Misclassification","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 pol","descriptionLong":"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.","published":"2026-07-14T17:53:49.836Z","updated":"2026-10-28T02:30:43.403691775Z","reserved":"2026-05-08T18:45:10.096Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":2.3,"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":2.3,"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":2.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"low","products":["symfony","symfony html-sanitizer"],"affectedProducts":[{"vendor":"symfony","product":"symfony","defaultStatus":null,"versions":[{"version":">= 6.1.0-BETA1, < 6.4.40","status":"affected"},{"version":">= 7.0.0-BETA1, < 7.4.12","status":"affected"},{"version":">= 8.0.0-BETA1, < 8.0.12","status":"affected"}],"platforms":[]},{"vendor":"symfony","product":"html-sanitizer","defaultStatus":null,"versions":[{"version":">= 6.1.0-BETA1, < 6.4.40","status":"affected"},{"version":">= 7.0.0-BETA1, < 7.4.12","status":"affected"},{"version":">= 8.0.0-BETA1, < 8.0.12","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"symfony/html-sanitizer","purl":"pkg:composer/symfony/html-sanitizer","ranges":[">=6.1.0 <6.4.40",">=7.0.0 <7.4.12",">=8.0.0 <8.0.12"],"fixed":["6.4.40","7.4.12","8.0.12"],"advisory":"GHSA-qc95-4862-92fh"},{"ecosystem":"Packagist","name":"symfony/symfony","purl":"pkg:composer/symfony/symfony","ranges":[">=6.1.0 <6.4.40",">=7.0.0 <7.4.12",">=8.0.0 <8.0.12"],"fixed":["6.4.40","7.4.12","8.0.12"],"advisory":"GHSA-qc95-4862-92fh"}],"cwes":["CWE-184","CWE-436"],"aliases":["GHSA-qc95-4862-92fh"],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-qc95-4862-92fh","tags":["x_refsource_CONFIRM","Patch","Vendor Advisory","advisory","web"]},{"url":"https://github.com/symfony/symfony/commit/d506b556d3d3906f3e8660ad82257ce87edbaac4","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/symfony/symfony/releases/tag/v6.4.40","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/symfony/symfony/releases/tag/v7.4.12","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/symfony/symfony/releases/tag/v8.0.12","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45066.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45066","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/html-sanitizer/CVE-2026-45066.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-45066.yaml","tags":["web"]},{"url":"https://github.com/symfony/symfony","tags":["package"]},{"url":"https://symfony.com/cve-2026-45066","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00338,"epssPercentile":0.27768,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45066","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45066","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45066","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qc95-4862-92fh","ok":true,"note":"GHSA-qc95-4862-92fh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45066","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}