CVE-2025-52561 MEDIUM

CVE-2025-52561: HTMLSanitizer.jl Possible XSS

Vendor Juliacomputing
Product HTMLSanitizer.jl
Weakness CWE-79 · XSS
Published June 23, 2025
Last update June 24, 2025

CVSS base score

6.9/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

June 23, 2025 CVE published
June 24, 2025 Record updated