Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
CRITICAL severity

CVE-2021-42575 — owasp-java-html-sanitizer

CRITICAL

CVE-2021-42575 is a critical-severity (CVSS 9.8) vulnerability in com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer. 1 public exploit reference exists, so weaponization risk is real. A fix is available for com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer — see the affected versions and patch details below.

Policies not properly enforced in OWASP Java HTML Sanitizer

Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Oct 12, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
3.0%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs87th percentile — riskier than 87% of all scored CVEsHighest risk
0.02%1.26%2.51%3.76%0.7%3.0%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-42575 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,987 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
☕com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
☕Mavencom.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizerall versions20211018.1com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20211018.1

Affected Products

3 products · 8 configurations
Application
middleware common libraries and toolsoracle
2 versions
12.2.1.3.012.2.1.4.0
Application
primavera unifieroracle
≥ 17.7 && ≤ 17.12
4 versions
18.819.1220.1221.12
Application
java html sanitizerowasp
< 20211018.2
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer to 20211018.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-42575 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
ProductFixed inAdvisory
Red Hat Single Sign-On 7.6.1see advisoryRHSA-2022:7417
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.3-1.redhat_00001.1.el7ssoRHSA-2022:7409
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.3-1.redhat_00001.1.el8ssoRHSA-2022:7410
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-0:1-5.el9ssoRHSA-2022:7411

Frequently Asked Questions

The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the `SELECT`, `STYLE`, and `OPTION` elements.
O3 Security · Impact-Aware SCA

Is CVE-2021-42575 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2021-42575: owasp-java-html — Fixed in 20211018.1