We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-52561

HTMLSanitizer.jl Possible XSS



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.

Reserved 2025-06-18 | Published 2025-06-23 | Updated 2025-06-23 | Assigner GitHub_M


MEDIUM: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N

Problem types

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product status

< 0.2.1
affected

References

github.com/...zer.jl/security/advisories/GHSA-3mj7-qxh9-6q4p

github.com/JuliaComputing/HTMLSanitizer.jl/pull/5

github.com/...ommit/0c3dc359e4a64c39cac609541945c0518feef040

cve.org (CVE-2025-52561)

nvd.nist.gov (CVE-2025-52561)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-52561

Support options

Helpdesk Chat, Email, Knowledgebase