CVE-2025-52561CWE-79

HTMLSanitizer.jl Possible XSS

Medium · published June 23, 2025

CVSS v4.0
6.9
EPSS
1%
Percentile
58.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
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
EPSS
0.00861 · 58.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-06-23T21:00Z
EPSS history
Timeline
  • 23 JUN 21:00Z
    HTMLSanitizer.jl Possible XSS
    cvelistv5