Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-52561 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References 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.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')[email protected]

Affected Products

ProductVersions
JuliaComputing HTMLSanitizer.jl
<= 0.2.0 (semver)

CPE

  • cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 0.2.1moderate effort
  • Workaround:low effort

    Add the `math` and `svg` elements to your whitelist: ```julia whitelist = deepcopy(HTMLSanitizer.WHITELIST) append!(whitelist[:removed_elements], ["math", "svg"]) sanitize(user_input, whitelist=whitelist) ```

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-52561
NVD Published Date:
Jun 23, 2025
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2025-52561 Details - Not Deferred