Skip to main content
← All vulnerabilities
CVE-2025-52561

HTMLSanitizer.jl Possible XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.2.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • JuliaComputing HTMLSanitizer.jl

    fixed in 0.2.1

References 3

GitHub · JuliaComputing/HTMLSanitizer.jl