CVE-2025-52561 Details
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.
A vulnerability in HTMLSanitizer.jl, a whitelist-based HTML sanitizer for Julia, allows for tag injection and execution of JavaScript. This issue arises when the style tag is added to the whitelist; content within the tag is improperly unescaped, and closing tags injected as content are treated as real HTML. This vulnerability affects versions of HTMLSanitizer.jl through 0.2.0 and could lead to cross-site scripting (XSS) in any HTML sanitized with this library.
Users should upgrade to HTMLSanitizer.jl version 0.2.1 or later, where this vulnerability has been patched. In version 0.2.1, SVG and math tags are removed by default. For versions prior to 0.2.1, add the math and SVG elements to the whitelist manually.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 23, 2025CISA-ADP
Assessed Jun 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/JuliaComputing/HTMLSanitizer.jl/commit/0c3dc359e4a64c39cac609541945c0518feef040 | [email protected] | Source CodeVendor |
| https://github.com/JuliaComputing/HTMLSanitizer.jl/pull/5 | [email protected] | Issue TrackingVendor |
| https://github.com/JuliaComputing/HTMLSanitizer.jl/security/advisories/GHSA-3mj7-qxh9-6q4p | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| JuliaComputing HTMLSanitizer.jl | <= 0.2.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2025 | New CVE Received | [email protected] |
Volerion