CVE-2021-42575
Policies not properly enforced in OWASP Java HTML Sanitizer
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
- Record
CVE-2021-42575- 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 - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
CVE List No score
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
- Record
CVE-2021-42575- Updated
- 2026-11-02
EUVDEUVD-2021-2151 No score
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
- Record
EUVD-2021-2151- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3w73-fmf3-hg5c
9.8
Policies not properly enforced in OWASP Java HTML Sanitizer
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
- Record
GHSA-3w73-fmf3-hg5c- 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 - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVGHSA-3w73-fmf3-hg5c
9.8
Policies not properly enforced in OWASP Java HTML Sanitizer
The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.
- Record
GHSA-3w73-fmf3-hg5c- 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 - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVRHSA-2022:7409
9.8
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 7
- Record
RHSA-2022:7409- 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 - Updated
- 2026-11-02
OSVRHSA-2022:7410
9.8
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 8
- Record
RHSA-2022:7410- 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 - Updated
- 2026-11-02
OSVRHSA-2022:7411
9.8
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 9
- Record
RHSA-2022:7411- 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 - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizerMaven |
before 20211018.1 | 20211018.1 |
com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizerMaven |
before 20211018.1, plus listed versions 1.120150501.120151202.220160203.120160413.1 Show 30 moreShow less20160422.120160526.120160614.120160628.120160827.120160924.120170329.120170408.120170411.120170512.120170515.120171016.120180219.120181114.120190325.120190503.120190610.120191001.120200615.120200713.1r136r156r163r164r173r198r209r223r232r239 |
20211018.1 |
rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el7 From an advisory covering 11 CVEs |
before 0:18.0.3-1.redhat_00001.1.el7sso | 0:18.0.3-1.redhat_00001.1.el7sso |
rh-sso7-keycloak-serverRed Hat:red_hat_single_sign_on:7.6::el7 From an advisory covering 11 CVEs |
before 0:18.0.3-1.redhat_00001.1.el7sso | 0:18.0.3-1.redhat_00001.1.el7sso |
rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el8 From an advisory covering 11 CVEs |
before 0:18.0.3-1.redhat_00001.1.el8sso | 0:18.0.3-1.redhat_00001.1.el8sso |
rh-sso7-keycloak-serverRed Hat:red_hat_single_sign_on:7.6::el8 From an advisory covering 11 CVEs |
before 0:18.0.3-1.redhat_00001.1.el8sso | 0:18.0.3-1.redhat_00001.1.el8sso |
rh-sso7Red Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:1-5.el9sso | 0:1-5.el9sso |
rh-sso7-javapackages-filesystemRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:6.0.0-7.el9sso | 0:6.0.0-7.el9sso |
rh-sso7-javapackages-toolsRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:6.0.0-7.el9sso | 0:6.0.0-7.el9sso |
rh-sso7-keycloakRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:18.0.3-1.redhat_00001.1.el9sso | 0:18.0.3-1.redhat_00001.1.el9sso |
rh-sso7-keycloak-serverRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:18.0.3-1.redhat_00001.1.el9sso | 0:18.0.3-1.redhat_00001.1.el9sso |
rh-sso7-python3-javapackagesRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:6.0.0-7.el9sso | 0:6.0.0-7.el9sso |
rh-sso7-runtimeRed Hat:red_hat_single_sign_on:7.6::el9 From an advisory covering 11 CVEs |
before 0:1-5.el9sso | 0:1-5.el9sso |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-42575 is a critical vulnerability (CVSS 9.8) in Owasp Java Html Sanitizer, published October 18, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.97%, the 87th percentile. Fixed in com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer 20211018.1.
References
oracle.com/security-alerts/cpujan2022.html
docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50
oracle.com/security-alerts/cpujul2022.html
nvd.nist.gov/vuln/detail/CVE-2021-42575
github.com/advisories/GHSA-3w73-fmf3-hg5c
access.redhat.com/errata/RHSA-2022:7409
Show 56 moreShow less
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2031958
bugzilla.redhat.com/show_bug.cgi?id=2039403
bugzilla.redhat.com/show_bug.cgi?id=2040268
bugzilla.redhat.com/show_bug.cgi?id=2060929
bugzilla.redhat.com/show_bug.cgi?id=2064226
bugzilla.redhat.com/show_bug.cgi?id=2064698
bugzilla.redhat.com/show_bug.cgi?id=2115392
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7409.json
access.redhat.com/security/cve/CVE-2020-36518
cve.org/CVERecord?id=CVE-2020-36518
nvd.nist.gov/vuln/detail/CVE-2020-36518
github.com/advisories/GHSA-57j2-w4cx-62h2
access.redhat.com/security/cve/CVE-2021-42392
cve.org/CVERecord?id=CVE-2021-42392
nvd.nist.gov/vuln/detail/CVE-2021-42392
github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6
access.redhat.com/security/cve/CVE-2021-42575
bugzilla.redhat.com/show_bug.cgi?id=2027195
cve.org/CVERecord?id=CVE-2021-42575
access.redhat.com/security/cve/CVE-2021-43797
cve.org/CVERecord?id=CVE-2021-43797
nvd.nist.gov/vuln/detail/CVE-2021-43797
github.com/netty/netty/security/advisories/GHSA-wx5j-54mm-rqqq
access.redhat.com/security/cve/CVE-2022-0084
cve.org/CVERecord?id=CVE-2022-0084
nvd.nist.gov/vuln/detail/CVE-2022-0084
access.redhat.com/security/cve/CVE-2022-0225
cve.org/CVERecord?id=CVE-2022-0225
nvd.nist.gov/vuln/detail/CVE-2022-0225
github.com/keycloak/keycloak/security/advisories/GHSA-755v-r4x4-qf7m
access.redhat.com/security/cve/CVE-2022-0853
bugzilla.redhat.com/show_bug.cgi?id=2060725
cve.org/CVERecord?id=CVE-2022-0853
nvd.nist.gov/vuln/detail/CVE-2022-0853
access.redhat.com/security/cve/CVE-2022-0866
cve.org/CVERecord?id=CVE-2022-0866
nvd.nist.gov/vuln/detail/CVE-2022-0866
access.redhat.com/security/cve/CVE-2022-1319
bugzilla.redhat.com/show_bug.cgi?id=2073890
cve.org/CVERecord?id=CVE-2022-1319
nvd.nist.gov/vuln/detail/CVE-2022-1319
access.redhat.com/security/cve/CVE-2022-2668
cve.org/CVERecord?id=CVE-2022-2668
nvd.nist.gov/vuln/detail/CVE-2022-2668
github.com/keycloak/keycloak/security/advisories/GHSA-wf7g-7h6h-678v
access.redhat.com/security/cve/CVE-2022-23913
bugzilla.redhat.com/show_bug.cgi?id=2063601
cve.org/CVERecord?id=CVE-2022-23913
nvd.nist.gov/vuln/detail/CVE-2022-23913
lists.apache.org/thread/fjynj57rd99s814rdn5hzvmx8lz403q2
access.redhat.com/errata/RHSA-2022:7410
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7410.json
access.redhat.com/errata/RHSA-2022:7411
access.redhat.com/articles/11258
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7411.json