CVE-2021-42575
Java vulnerability analysis and mitigation

Overview

The OWASP Java HTML Sanitizer before version 20211018.1 contains a security vulnerability related to policy enforcement. The vulnerability was discovered and disclosed in October 2021, affecting the core sanitization functionality of the library. The issue specifically impacts how policies are enforced for SELECT, STYLE, and OPTION HTML elements (NVD Database, CVE Database).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 9.8 (CRITICAL) with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. This indicates that the vulnerability is network exploitable, requires low attack complexity, needs no privileges or user interaction, and can result in high impacts to confidentiality, integrity, and availability (NVD Database).

Impact

The vulnerability could potentially allow attackers to bypass the HTML sanitization policies specifically for SELECT, STYLE, and OPTION elements. This could lead to various security issues including potential cross-site scripting (XSS) attacks when the sanitizer is used to clean user-provided HTML content (NVD Database).

Mitigation and workarounds

Users should upgrade to OWASP Java HTML Sanitizer version 20211018.1 or later to address this vulnerability. Oracle has also released patches for affected products in their January 2022 and July 2022 Critical Patch Updates (Oracle Jan 2022, Oracle Jul 2022).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-10050HIGH8.7
  • Java logoJava
  • confluent-kafka
NoYesAug 04, 2026
CVE-2026-59920MEDIUM6.5
  • Java logoJava
  • netty
NoYesJul 29, 2026
CVE-2026-59898MEDIUM6.3
  • Java logoJava
  • strimzi-kafka-operator
NoYesJul 29, 2026
CVE-2026-59919MEDIUM5.5
  • Java logoJava
  • apache-polaris
NoYesJul 29, 2026
CVE-2026-53573MEDIUM4.8
  • Java logoJava
  • org.geonetwork-opensource:geonetwork
NoYesJul 31, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management