CVE-2026-45753 Details
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, UrlAttributeSanitizer::getSupportedAttributes() omits URL-valued attributes including action, formaction, poster, and cite, so configurations that admit those attributes can leave javascript: URIs unsanitized and enable XSS when the resulting HTML is rendered or a victim submits a form or clicks a button. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
A cross-site scripting (XSS) vulnerability has been identified in the Symfony framework, specifically in the UrlAttributeSanitizer component of the HtmlSanitizer. This issue affects Symfony versions 6.1.0-BETA1 prior to 6.4.40, as well as versions 7.4.12 and 8.0.12. The vulnerability arises because the UrlAttributeSanitizer's method getSupportedAttributes() fails to include several URL-valued attributes, such as action, formaction, poster, and cite. As a result, configurations that allow these attributes can inadvertently permit javascript: URIs to remain unsanitized. When the rendered HTML is interacted with, such as by submitting a form or clicking a button, this oversight can be exploited to execute malicious scripts.
Users can update to Symfony versions 6.4.40, 7.4.12, or 8.0.12, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/symfony/symfony/commit/487728e7e180a674a6d4c01bd0cb56161cc441b7 | [email protected] | Patch |
| https://github.com/symfony/symfony/releases/tag/v6.4.40 | [email protected] | ProductRelease Notes |
| https://github.com/symfony/symfony/releases/tag/v7.4.12 | [email protected] | ProductRelease Notes |
| https://github.com/symfony/symfony/releases/tag/v8.0.12 | [email protected] | ProductRelease Notes |
| https://github.com/symfony/symfony/security/advisories/GHSA-hhg7-c65m-h7ff | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sensiolabs symfony | >= 6.1.0, < 6.4.40 >= 7.0.0, < 7.4.12 >= 8.0.0, < 8.0.12 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | New CVE Received | [email protected] |
| Jul 14, 2026 | CVE Modified | CISA-ADP |