{"id":"CVE-2026-48761","published":"2026-07-14T19:21:26Z","modified":"2026-07-21T18:02:30Z","title":"Symfony: HtmlSanitizer UrlAttributeSanitizer Misses URL Attributes on <object>, <applet>, <iframe>, <img> and the URL…","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 until 6.4.41, 7.4.13, and 8.0.13, UrlAttributeSanitizer::getSupportedAttributes() omitted URL-bearing attributes on <object>, <applet>, <iframe>, and <img>, and <meta http-equiv=\"refresh\"> URLs inside content bypassed URL sanitization, allowing explicitly enabled elements or attributes to pass javascript: and similar payloads into sanitized output. This issue is fixed in versions 6.4.41, 7.4.13, and 8.0.13.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/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.00345,"percentile":0.20391,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-1023","name":"Incomplete Comparison with Missing Factors"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-x5qj-865h-mgvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/069a70f9f26e61e9de3b7f9a864a86ed24b36bd0","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v6.4.41","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v7.4.13","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/releases/tag/v8.0.13","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":4.08},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 6.1.0, < 6.4.41",">= 7.0.0-BETA1, < 7.4.13",">= 8.0.0-BETA1, < 8.0.13"]},{"vendor":"symfony","product":"html-sanitizer","versions":[">= 6.1.0, < 6.4.41",">= 7.0.0-BETA1, < 7.4.13",">= 8.0.0-BETA1, < 8.0.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T18:02:08.885729Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/html-sanitizer","vulnerableRanges":[">=6.1.0, <6.4.41",">=7.0.0, <7.4.13",">=8.0.0, <8.0.13"],"patched":["6.4.41","7.4.13","8.0.13"],"from":["GHSA-x5qj-865h-mgvm"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=6.1.0, <6.4.41",">=7.0.0, <7.4.13",">=8.0.0, <8.0.13"],"patched":["6.4.41","7.4.13","8.0.13"],"from":["GHSA-x5qj-865h-mgvm"],"provenance":"source"}],"summary":{"text":"The flaw is in the HtmlSanitizer component of Symfony, a PHP framework, where UrlAttributeSanitizer fails to sanitize URL-bearing attributes on the <object>, <applet>, <iframe>, and <img> elements, and URLs inside <meta http-equiv=\"refresh\"> content are not sanitized either. An attacker who can supply HTML that the application passes through this sanitizer, and who gets a user to interact with the resulting page, can get javascript: and similar payloads into the sanitized output, provided the application has explicitly enabled those elements or attributes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:33Z"},"euvd":{"id":"EUVD-2026-44389","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-symfony-cve-2026-45753","parents":[{"from":"CVE-2026-45753","to":"CVE-2026-48761","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/UrlAttributeSanitizer.php"],"commits":["https://github.com/symfony/symfony/commit/487728e7e180a674a6d4c01bd0cb56161cc441b7","https://github.com/symfony/symfony/commit/069a70f9f26e61e9de3b7f9a864a86ed24b36bd0"],"basis":"shared function","functions":["getSupportedElements"]}]}],"children":[{"from":"CVE-2026-48761","to":"CVE-2026-121373","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The Symfony HtmlSanitizer component MetaRefreshAttributeSanitizer, introduced to fix CVE-2026-48761, sanitizes the refresh URL of content attributes of meta tags using a regular expression that is too narrow, allowing sanitization to be b…","from":"CVE.org","in":"CVE-2026-121373"},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/MetaRefreshAttributeSanitizer.php"],"commits":["https://github.com/symfony/symfony/commit/2d4c4fe36200858b91132a95076fff3d9de89d26","https://github.com/symfony/symfony/commit/069a70f9f26e61e9de3b7f9a864a86ed24b36bd0"],"basis":"rarely changed file"}]},{"from":"CVE-2026-48761","to":"CVE-2026-121949","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes.","from":"CVE.org","in":"CVE-2026-121949"},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/UrlAttributeSanitizer.php"],"commits":["https://github.com/symfony/symfony/commit/50e7a38a8f088601c09669b9d267c9c0228884e1","https://github.com/symfony/symfony/commit/069a70f9f26e61e9de3b7f9a864a86ed24b36bd0"],"basis":"shared function","functions":["getSupportedElements"]}]}],"packageHistory":[{"cve":"CVE-2026-45066","published":"2026-07-14","fixed":"8.0.12","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"}]}},{"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}],"package":"Packagist:symfony/html-sanitizer"}}