PT-2025-26646 · Unknown · Htmlsanitizer.Jl
Pfitzseb
·
Published
2025-06-23
·
Updated
2025-10-14
·
CVE-2025-52561
CVSS v4.0
6.9
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
Name of the Vulnerable Software and Affected Versions:
HTMLSanitizer.jl versions prior to 0.2.1
Description:
The issue is related to improper HTML sanitization in HTMLSanitizer.jl, a Whitelist-based HTML sanitizer. When the style tag is added to the whitelist, content inside the tag is incorrectly unescaped, and closing tags injected as content are interpreted as real HTML. This enables tag injection and JavaScript execution, potentially resulting in cross-site scripting (XSS) in any HTML sanitized with this library.
Recommendations:
For versions prior to 0.2.1, update to version 0.2.1 to resolve the issue.
As a temporary workaround, consider adding the math and svg elements to the whitelist manually.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Htmlsanitizer.Jl