CVE-2025-52561: JuliaComputing HTMLSanitizer.jl · Cross-site Scripting
Affects JuliaComputing HTMLSanitizer.jlSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 0.2.1 when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.2.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade github.com/juliacomputing/HTMLSanitizer.jl to 0.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gogithub.com/juliacomputing/HTMLSanitizer.jlpkg:golang/github.com/juliacomputing/HTMLSanitizer.jlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediate upgrade to HTMLSanitizer.jl version 0.2.1 or later to apply the official patch that corrects the unescaping behavior inside the <style> tag.
- As an interim measure, manually add the <math> and <svg> elements to the whitelist in the sanitizer configuration to reduce the attack surface.
- Conduct a thorough audit of all web applications and services using HTMLSanitizer.jl to identify vulnerable versions and usage contexts.
- Implement Content Security Policy (CSP) headers with strict script-src directives to restrict the execution of unauthorized scripts, mitigating the impact of potential XSS attacks.
- Employ runtime application self-protection (RASP) or web application firewalls (WAFs) configured to detect and block suspicious HTML or script injection attempts targeting the sanitizer.
- Educate developers on secure coding practices related to input sanitization and output encoding, emphasizing the risks of improper whitelist configurations.
- Monitor security advisories and threat intelligence feeds for any emerging exploit attempts targeting this vulnerability to enable rapid response.
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.