Vulnerability

CVE-2025-52561

mediumCVSS 4.0 6.9Published 23 Jun 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /JuliaComputing/HTMLSanitizer.jl/commit/0c3dc359e4a64c39cac…
  • github.com /JuliaComputing/HTMLSanitizer.jl/pull/5
  • github.com /JuliaComputing/HTMLSanitizer.jl/security/advisories/GHSA-3…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning