Intel

AIKIDO-2026-10870

symfony/html-sanitizer is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS)CVE-2026-45753 Published May 21, 2026

35

Low Risk

This Affects:

PHPsymfony/html-sanitizer
6.1.0 - 6.4.39
Fixed in 6.4.40
7.0.0 - 7.4.11
Fixed in 7.4.12
8.0.0 - 8.0.11
Fixed in 8.0.12
Are you affected? Scan for Free

TL;DR

UrlAttributeSanitizer omits several URL-valued HTML attributes from scheme validation. Permissive sanitizer configurations can therefore keep javascript: URLs in action, formaction, poster, or cite. Pre-fix sanitized content can retain scriptable URLs in allowed attributes. The fix validates those attributes against the appropriate link or media scheme policy.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

symfony/html-sanitizer is vulnerable to Cross-site Scripting (XSS) in versions 6.1.0 - 6.4.39, 7.0.0 - 7.4.11 and 8.0.0 - 8.0.11.

How to fix this

Upgrade the symfony/html-sanitizer and/or symfony/symfony library to the patch version.