# CVE-2025-52561: HTMLSanitizer.jl Possible XSS

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2025-06-23T21:00:13.699Z
- Modified: 2026-07-18T04:00:04.074Z
- Also known as: JLSEC-2025-39, GHSA-3mj7-qxh9-6q4p
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- JuliaComputing HTMLSanitizer.jl: < 0.2.1
- HTMLSanitizer (Julia): before 0.2.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/JuliaComputing/HTMLSanitizer.jl/security/advisories/GHSA-3mj7-qxh9-6q4p> (web)
- <https://github.com/JuliaComputing/HTMLSanitizer.jl/pull/5> (web)
- <https://github.com/JuliaComputing/HTMLSanitizer.jl/commit/0c3dc359e4a64c39cac609541945c0518feef040> (web)

## Sources

- CVE List: [CVE-2025-52561](https://www.cve.org/CVERecord?id=CVE-2025-52561), CVE Terms of Use, modified 2025-06-24
- Julia Security Advisories: [JLSEC-2025-39](https://osv.dev/vulnerability/JLSEC-2025-39), CC-BY-4.0, modified 2026-07-18
- NVD: [CVE-2025-52561](https://nvd.nist.gov/vuln/detail/CVE-2025-52561), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-52561 · Whole record: https://cve.day/CVE-2025-52561.json · Rebuilt by cve.day 2026-11-25T22:58:59.537Z
