# CVE-2021-42575: Policies not properly enforced in OWASP Java HTML Sanitizer

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.97%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-18T14:38:13.000Z
- Modified: 2026-06-17T04:09:51.163Z
- Also known as: GHSA-3w73-fmf3-hg5c
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer (Maven): before 20211018.1
- owasp java_html_sanitizer: before 20211018.2
- oracle middleware_common_libraries_and_tools: 12.2.1.3.0; 12.2.1.4.0
- oracle primavera_unifier: from 17.7 up to 17.12; 18.8; 19.12; 20.12; 21.12

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/> (exploit, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42575> (advisory)
- <https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50> (web)

## Sources

- CVE List: [CVE-2021-42575](https://www.cve.org/CVERecord?id=CVE-2021-42575), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3w73-fmf3-hg5c](https://github.com/advisories/GHSA-3w73-fmf3-hg5c), CC-BY-4.0, modified 2024-02-19
- NVD: [CVE-2021-42575](https://nvd.nist.gov/vuln/detail/CVE-2021-42575), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42575 · Whole record: https://cve.day/CVE-2021-42575.json · Rebuilt by cve.day 2026-11-25T22:58:04.536Z
