Vulnerability Description
HTMLSanitizer.jl is a Whitelist-based HTML sanitizer. Prior to version 0.2.1, when adding the style tag to the whitelist, content inside the tag is incorrectly unescaped, and closing tags injected as content are interpreted as real HTML, enabling tag injection and JavaScript execution. This could result in possible cross-site scripting (XSS) in any HTML that is sanitized with this library. This issue has been patched in version 0.2.1. A workaround involves adding the math and svg elements to the whitelist manually.
Related Weaknesses (CWE)
References
- https://github.com/JuliaComputing/HTMLSanitizer.jl/commit/0c3dc359e4a64c39cac609
- https://github.com/JuliaComputing/HTMLSanitizer.jl/pull/5
- https://github.com/JuliaComputing/HTMLSanitizer.jl/security/advisories/GHSA-3mj7
FAQ
What is CVE-2025-52561?
CVE-2025-52561 is a documented vulnerability. HTMLSanitizer.jl is a Whitelist-based HTML sanitizer. Prior to version 0.2.1, when adding the style tag to the whitelist, content inside the tag is incorrectly unescaped, and closing tags injected as ...
How severe is CVE-2025-52561?
CVSS scoring is not yet available for CVE-2025-52561. Check NVD for updates.
Is there a patch for CVE-2025-52561?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.