CVE-2021-42575 OWASP Java HTML Sanitizer
| Affected software | OWASP Java HTML Sanitizer |
|---|---|
| Severity | 9.8 Critical CVSS 3.1 2 scores |
| Fixed in | 20211018.1 |
| Weakness | Improper input validation (CWE-20) |
| Published | 18 Oct 2021 |
| Updated | 17 Jun 2026 |
Description
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 5 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment no assessment published
- Indexed PoC none indexed
- EPSS 3.0% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full
- Action available security rule
- Review human Researcher
- Record active
| Decided by | Manual classification of this CVE in the legacy dataset |
|---|---|
| Finding | A manual classification set this CVE's status to Protected by Waratek. |
How to mitigate CVE-2021-42575
Upgrade OWASP Java HTML Sanitizer to 20211018.1 or later. Until you can, Waratek RASP blocks exploitation with a security rule that blocks this kind of attack. It runs inside the Java application, with no code changes.
CVSS
9.8 CRITICAL
v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2 metrics
CVSS
9.8 CRITICAL v3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
NVD | Primary | published |
| CVSS 2.0 | 7.5 | none | AV:N/AC:L/Au:N/C:P/I:P/A:P |
NVD | Primary |
Affected software and releases
Oracle advisories
| Advisory | Type | Quarter | Products Oracle names in its risk matrix |
|---|---|---|---|
| Oracle Critical Patch Update July 2025 ↗ | CPU | 2025-Q3 | Oracle Supply Chain / Web Client (Java HTML Sanitizer) (9.3.6) |
| Oracle Critical Patch Update January 2024 ↗ | CPU | 2024-Q1 | Oracle Hyperion / Hub (Java HTML Sanitizer) (11.2.14.0.000) |
| Oracle Critical Patch Update July 2023 ↗ | CPU | 2023-Q3 | Oracle Communications Applications / Configuration (Java HTML Sanitizer) (3.0.3.2) Oracle Fusion Middleware / ADF Faces (Java HTML Sanitizer) (12.2.1.4.0) |
| Oracle Critical Patch Update April 2023 ↗ | CPU | 2023-Q2 | Oracle Commerce / Platform (OWASP Java HTML Sanitizer ) (11.3.0, 11.3.1, 11.3.2) |
| Oracle Critical Patch Update July 2022 ↗ | CPU | 2022-Q3 | Oracle Fusion Middleware / Third Party Patch (AntiSamy) (12.2.1.3.0, 12.2.1.4.0) |
| Oracle Critical Patch Update January 2022 ↗ | CPU | 2022-Q1 | Oracle Construction and Engineering / Platform, Data Persistence (OWASP Java HTML Sanitizer) (17.7-17.12, 18.8, 19.12, 20.12, 21.12) |
Oracle components and versions
| Family | Component | Versions, as Oracle lists them | Read as |
|---|---|---|---|
| Oracle Commerce | Platform (OWASP Java HTML Sanitizer ) | 11.3.0, 11.3.1, 11.3.2 | 11.3.0 · 11.3.1 · 11.3.2 |
| Oracle Communications Applications | Configuration (Java HTML Sanitizer) | 3.0.3.2 | 3.0.3.2 |
| Oracle Construction and Engineering | Platform, Data Persistence (OWASP Java HTML Sanitizer) | 17.7-17.12, 18.8, 19.12, 20.12, 21.12 | 18.8 · 19.12 · 20.12 · 21.12 |
| Oracle Fusion Middleware | ADF Faces (Java HTML Sanitizer) | 12.2.1.4.0 | 12.2.1.4.0 |
| Oracle Fusion Middleware | Third Party Patch (AntiSamy) | 12.2.1.3.0, 12.2.1.4.0 | 12.2.1.3.0 · 12.2.1.4.0 |
| Oracle Hyperion | Hub (Java HTML Sanitizer) | 11.2.14.0.000 | 11.2.14.0.0 |
| Oracle Supply Chain | Web Client (Java HTML Sanitizer) | 9.3.6 | 9.3.6 |
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer |
0 | 20211018.1 |
unbounded |
Products and versions
4 products, 9 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| osv | com.googlecode.owasp-java-html-sanitizer | owasp-java-html-sanitizer | generic | < 99999.1 |
| nvd | oracle | middleware common libraries and tools | generic | 12.2.1.3.0 · 12.2.1.4.0 |
| nvd | oracle | primavera unifier | generic | ≥ 17.7 and ≤ 17.12 · 18.8 · 19.12 · 20.12 · 21.12 |
| nvd | owasp | java html sanitizer | generic | < 99999.2 |
Earlier manual review
A reviewer classified this CVE in an older dataset. We kept the labels and products below, but not the reviewer's reasoning.
## Manual Classification Context **Labels:** HTTP, PLATFORM, NO AUTH REMOTE EXPLOIT, DATA PERSISTENCE (OWASP JAVA HTML SANITIZER) **Products:** PRIMAVERA UNIFIER, ORACLE CONSTRUCTION AND ENGINEERING
References
Timeline
Timeline
| Published | 2021-10-18 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |