LowGHSA-hhg7-c65m-h7ff
Symfony's HtmlSanitizer UrlAttributeSanitizer Omits action/formaction/poster/cite — `javascript`: URI Survives Sanitization (XSS)
Affected versions
6.1.0 to before 6.4.40, 7.0.0 to before 7.4.12, 8.0.0 to before 8.0.12 - fixed in 6.4.40Details
### Description `symfony/html-sanitizer` lets applications sanitise untrusted HTML. `UrlAttributeSanitizer` is the visitor responsible for validating URL-valued attributes and stripping dangerous schemes from them; it runs on every element regardless of configuration. Whether an attribute is *kept* is decided by the element/attribute allow-list; validating the *scheme* of a URL attribute is solely `UrlAttributeSanitizer`'s responsibility. `UrlAttributeSanitizer::getSupportedAttributes()` returned only `['src', 'href', 'lowsrc', 'background', 'ping']`. The HTML URL-valued attributes `action`
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-45753
- https://github.com/symfony/symfony/security/advisories/GHSA-hhg7-c65m-h7ff
- https://github.com/symfony/symfony/commit/26a598fcfc4f903cc55ff202f642ee621839825e
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/html-sanitizer/CVE-2026-45753.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-45753.yaml
- https://github.com/symfony/symfony
- https://symfony.com/cve-2026-45753
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected