CVE-2025-66021
Last modified
CVE-2025-66021 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. OWASP Java HTML Sanitizer is a configureable HTML Sanitizer written in Java, allowing inclusion of HTML authored by third-parties in web applications while protecting against XSS. In version 20240325.1, OWASP java html sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows noscript and style tags with allowTextIn inside the style tag. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
OWASP Java HTML Sanitizer is a configureable HTML Sanitizer written in Java, allowing inclusion of HTML authored by third-parties in web applications while protecting against XSS. In version 20240325.1, OWASP java html sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows noscript and style tags with allowTextIn inside the style tag. This could lead to XSS if the payload is crafted in such a way that it does not sanitise the CSS and allows tags which is not mentioned in HTML policy. At time of publication no known patch is available.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Owasp | Java Html Sanitizer | 20240325.1 |
References
- https://github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2Exploit, Vendor Advisory
- https://github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-66021?
How severe is CVE-2025-66021?
How do I fix CVE-2025-66021?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-66005Lack of authorization of the InputManager D-Bus interface in…8.5
- CVE-2025-6601GitLab has remediated an issue in GitLab EE affecting all ve…6.5
- CVE-2025-66016CGGMP24 is a state-of-art ECDSA TSS protocol that supports 1…9.3
- CVE-2025-66017CGGMP24 is a state-of-art ECDSA TSS protocol that supports 1…8.2
- CVE-2025-66019pypdf is a free and open-source pure-python PDF library. Pri…6.6
- CVE-2025-66020Valibot helps validate data using a schema. In versions from…7.5
- CVE-2025-66022FACTION is a PenTesting Report Generation and Collaboration …9.8
- CVE-2025-66023NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging …4.9
- CVE-2025-66024The XWiki blog application allows users of the XWiki platfor…9
- CVE-2025-66025Caido is a web security auditing toolkit. Prior to version 0…4.3
- CVE-2025-66026REDAXO is a PHP-based CMS. Prior to version 5.20.1, a reflec…6.1
- CVE-2025-66027Rallly is an open-source scheduling and collaboration tool. …6.5
Are you affected by CVE-2025-66021?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
