PT-2025-26646 · Unknown · Htmlsanitizer.Jl

Pfitzseb

·

Published

2025-06-23

·

Updated

2025-10-14

·

CVE-2025-52561

CVSS v4.0

6.9

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions: HTMLSanitizer.jl versions prior to 0.2.1
Description: The issue is related to improper HTML sanitization in HTMLSanitizer.jl, a Whitelist-based HTML sanitizer. When the style tag is added to the whitelist, content inside the tag is incorrectly unescaped, and closing tags injected as content are interpreted as real HTML. This enables tag injection and JavaScript execution, potentially resulting in cross-site scripting (XSS) in any HTML sanitized with this library.
Recommendations: For versions prior to 0.2.1, update to version 0.2.1 to resolve the issue. As a temporary workaround, consider adding the math and svg elements to the whitelist manually.

Exploit

Fix

XSS

Weakness Enumeration

Related Identifiers

CVE-2025-52561
GHSA-3MJ7-QXH9-6Q4P
JLSEC-2025-39

Affected Products

Htmlsanitizer.Jl