{"id":"CVE-2021-42575","aliases":["CVE-2021-42575","GHSA-3w73-fmf3-hg5c"],"related":[],"kind":"vulnerability","state":"published","title":"Policies not properly enforced in OWASP Java HTML Sanitizer","summary":"The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.","source":"cvelist"},{"lang":"en","text":"The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the `SELECT`, `STYLE`, and `OPTION` elements.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OWASP Java HTML Sanitizer versiones anteriores a 20211018.1, no aplica apropiadamente las políticas asociadas a los elementos SELECT, STYLE y OPTION","source":"nvd"}],"published":"2021-10-18T14:38:13.000Z","modified":"2026-06-17T04:09:51.163Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"20211018.1"}],"ecosystem":"Maven","package":"com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer","purl":"pkg:maven/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"20211018.2"}],"vendor":"owasp","product":"java_html_sanitizer","cpe":"cpe:2.3:a:owasp:java_html_sanitizer:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"}],"vendor":"oracle","product":"middleware_common_libraries_and_tools","cpe":"cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"17.7","lastAffected":"17.12"},{"status":"affected","version":"18.8"},{"status":"affected","version":"19.12"},{"status":"affected","version":"20.12"},{"status":"affected","version":"21.12"}],"vendor":"oracle","product":"primavera_unifier","cpe":"cpe:2.3:a:oracle:primavera_unifier:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42575","tags":["advisory"],"sources":["ghsa"]},{"url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42575","url":"https://www.cve.org/CVERecord?id=CVE-2021-42575","licence":"CVE Terms of Use","modified":"2024-08-04T03:38:49.294Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3w73-fmf3-hg5c","url":"https://github.com/advisories/GHSA-3w73-fmf3-hg5c","licence":"CC-BY-4.0","modified":"2024-02-19T05:33:53.630Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42575","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42575","licence":"Public domain","modified":"2026-06-17T04:09:51.163Z"}],"updatedAt":"2026-11-25T22:58:04.536Z","epss":{"score":0.02975,"percentile":0.87622,"date":"2026-12-01T12:00:22.000Z"}}