CVE-2021-42575
No exploitation reported by the sources we read.
- Published2021-10-18
- Fixed in20211018.1
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
Timeline
dates in UTC- 2021-10-1815:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 20211018.1 | < 20211018.1 | 20211018.1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 17.x | ≥ 17.7, ≤ 17.12 | no fix published | NVD |
| 18.8 | = 18.8 | no fix published | NVD |
| 19.12 | = 19.12 | no fix published | NVD |
| 20.12 | = 20.12 | no fix published | NVD |
| 21.12 | = 21.12 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 12.2 | = 12.2.1.3.0 | no fix published | NVD |
| 12.2 | = 12.2.1.4.0 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- rh-sso7Red Hat:red_hat_single_sign_on:7.6::el9all versions · fixed in 0:1-5.el9ssoand 1 other package
- rh-sso7-javapackages-toolsRed Hat:red_hat_single_sign_on:7.6::el9all versions · fixed in 0:6.0.0-7.el9ssoand 2 other packages
- rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el9all versions · fixed in 0:18.0.3-1.redhat_00001.1.el9ssoand 1 other package
- rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el8all versions · fixed in 0:18.0.3-1.redhat_00001.1.el8ssoand 1 other package
- rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el7all versions · fixed in 0:18.0.3-1.redhat_00001.1.el7ssoand 1 other package
Vendor advisories
owasp-java-html-sanitizer: improper policies enforcement may lead to remote code execution
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 9
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 8
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 7
Fix
- Update owasp-java-html-sanitizer to 20211018.1
- Vendor fix Red Hat Product Security RHSA-2022:7417 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
- Vendor fix Red Hat Product Security RHSA-2022:7411 · 6 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
Advisories and patches
- www.oracle.comPatch
- www.oracle.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.07.5read 2026-10-23
- FIRST EPSSEPSS score3.0 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2021-10-19
Identifiers
- EUVD-2021-2151same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-3w73-fmf3-hg5csame flawGitHub Advisory Database · CC-BY-4.0
- RHSA-2022:7409advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:7410advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:7411advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-10-18
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-3w73-fmf3-hg5c
Frequently asked questions
What is CVE-2021-42575?
Is CVE-2021-42575 actively exploited?
What is the CVSS score for CVE-2021-42575?
Running owasp-java-html-sanitizer? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3w73-fmf3-hg5c
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0