Skip to main content
No exploitation reportedFix available

CVE-2021-42575

No exploitation reported by the sources we read.

  • Published2021-10-18
  • Fixed in20211018.1

Am I 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
  1. 2021-10-1815:15CVE publishedNVD

Versions per branch

OSV · NVD
owasp-java-html-sanitizer
BranchAffectedFixed in
20211018.1< 20211018.120211018.1
Oracle primavera unifier
BranchAffectedFixed in
17.x≥ 17.7, ≤ 17.12no fix published
18.8= 18.8no fix published
19.12= 19.12no fix published
20.12= 20.12no fix published
21.12= 21.12no fix published
Oracle middleware common libraries and tools
BranchAffectedFixed in
12.2= 12.2.1.3.0no fix published
12.2= 12.2.1.4.0no fix published

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

  • CVE-2021-42575 Red Hat Product Security13 products fixed

    owasp-java-html-sanitizer: improper policies enforcement may lead to remote code execution

  • RHSA-2022:7417 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update

  • RHSA-2022:7411 Red Hat Product Security6 products fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 9

  • RHSA-2022:7410 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 8

  • RHSA-2022:7409 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 7

Full record on NVD

Fix

  1. Update owasp-java-html-sanitizer to 20211018.1
  2. 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).
  3. 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

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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

Is CVE-2021-42575 actively exploited?

Active exploitation of CVE-2021-42575 has not been confirmed. Its EPSS score was 3.0% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-42575?

CVE-2021-42575 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record