Skip to main content
CVE-2025-52561VulnerabilityPublished

CVE-2025-52561: JuliaComputing HTMLSanitizer.jl · Cross-site Scripting

Affects JuliaComputing HTMLSanitizer.jlSource CVE Database V5

0

Not known to be exploited · CVSS 6.9 Medium : upgrade to 0.2.1 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-26.

What to do

Upgrade github.com/juliacomputing/HTMLSanitizer.jl to 0.2.1.

Affected software

ProductAffectedFixed in
Gogithub.com/juliacomputing/HTMLSanitizer.jlpkg:golang/github.com/juliacomputing/HTMLSanitizer.jlOther threatsAffected
  • <0.2.1
Fixed in
  • 0.2.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. 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. 2. As an interim measure, manually add the <math> and <svg> elements to the whitelist in the sanitizer configuration to reduce the attack surface. 3. Conduct a thorough audit of all web applications and services using HTMLSanitizer.jl to identify vulnerable versions and usage contexts. 4. 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. 5. 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. 6. Educate developers on secure coding practices related to input sanitization and output encoding, emphasizing the risks of improper whitelist configurations. 7. 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.

References

Community reviews

Loading reviews…