{"schemaVersion":3,"id":"CVE-2025-66021","aliases":["CGA-45f8-2cf8-g6x8","CGA-cmcc-hqmr-2w58","CGA-4j22-r37q-254r","CGA-6m2h-35ph-85pj","CGA-6vmc-27q7-pgxm","CGA-7h87-c6mx-q28j","CGA-7rmf-8m8m-9xm7","CGA-7x2p-hrx8-g89r","CGA-c384-q749-h6fv","CGA-f55g-2352-78j3","CGA-hmjp-c548-h5w2","CGA-j437-882j-pmhg","GHSA-g9gq-3pfx-2gw2","CGA-pwr9-fxjx-vw4j","CGA-vhc7-c968-vx69"],"status":"published","duplicateOf":null,"title":null,"description":"OWASP Java HTML Sanitizer is a configureable HTML Sanitizer written in Java, allowing inclusion of HTML authored by third-parties in web applications while protecting against XSS. In version 20240325.1,  OWASP java html sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows noscript and style tags with allowTextIn inside the style tag. This could lead to XSS if the payload is crafted in such a way that it does not sanitise the CSS and allows tags which is not mentioned in HTML policy. At time of publication no known patch is available.","dates":{"published":"2025-11-26T01:53:37.578Z","modified":"2025-11-26T15:16:17.063Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.6,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":8.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":8.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00249,"percentile":0.15107,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00249},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00247,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00249,"percentile":0.15107}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00249,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00249,"percentile":0.15107}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_OWASP_JAVA-HTML-SANITIZER","name":"Java Html Sanitizer","source":"github","url":"https://github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"chainguard","product":"keycloak-26.2","name":"keycloak-26.2","label":"keycloak-26.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-26.2-iamguarded-compat","name":"keycloak-26.2-iamguarded-compat","label":"keycloak-26.2-iamguarded-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.2-iamguarded-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-26.4","name":"keycloak-26.4","label":"keycloak-26.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-26.4","purlType":"apk","versions":[{"text":"< 26.4.7-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.4.7-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.2-iamguarded-fips","name":"keycloak-fips-26.2-iamguarded-fips","label":"keycloak-fips-26.2-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.2-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.3-iamguarded-fips","name":"keycloak-fips-26.3-iamguarded-fips","label":"keycloak-fips-26.3-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.3-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.4","name":"keycloak-fips-26.4","label":"keycloak-fips-26.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.4","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"keycloak-fips-26.4-iamguarded-fips","name":"keycloak-fips-26.4-iamguarded-fips","label":"keycloak-fips-26.4-iamguarded-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak-fips-26.4-iamguarded-fips","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak-26.4","name":"keycloak-26.4","label":"keycloak-26.4","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak-26.4","purlType":"apk","versions":[{"text":"< 26.4.7-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.4.7-r3","eol":null,"hubHref":null},{"vendor":"com.googlecode.owasp-java-html-sanitizer","product":"owasp-java-html-sanitizer","name":"com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer","label":"owasp-java-html-sanitizer","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer","purlType":"maven","versions":[{"text":"≥ 20240325.1, < 20260101.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 20240325.1, < 20260101.1","eol":null,"hubHref":null},{"vendor":"owasp","product":"java_html_sanitizer","name":"java html sanitizer","label":"java_html_sanitizer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"20240325.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"20240325.1","eol":null,"hubHref":"/vendor/owasp/java_html_sanitizer"},{"vendor":"owasp","product":"java-html-sanitizer","name":"java-html-sanitizer","label":"java-html-sanitizer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"= 20240325.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"= 20240325.1","eol":null,"hubHref":"/vendor/owasp/java-html-sanitizer"}],"affectedCount":11,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2","label":"github.com/OWASP/java-html-sanitizer/security/advisories/GHSA-g9gq-3pfx-2gw2","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Exploit","Vendor Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66021.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66021.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66021","label":"nvd.nist.gov/vuln/detail/CVE-2025-66021","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/OWASP/java-html-sanitizer/issues/363","label":"github.com/OWASP/java-html-sanitizer/issues/363","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/OWASP/java-html-sanitizer/commit/4149cf02ba84db13e8e9d7ee1b01b3f47238e072","label":"github.com/OWASP/java-html-sanitizer/commit/4149cf02ba84db13e8e9d7ee1b01b3f47238e072","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/OWASP/java-html-sanitizer/commit/b98cdf1cd5e156a6259b01aa8cdc7372c6efde1e","label":"github.com/OWASP/java-html-sanitizer/commit/b98cdf1cd5e156a6259b01aa8cdc7372c6efde1e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/OWASP/java-html-sanitizer/commit/d6e0463ed3b48777ecd187913ffdbe767508ff45","label":"github.com/OWASP/java-html-sanitizer/commit/d6e0463ed3b48777ecd187913ffdbe767508ff45","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/OWASP/java-html-sanitizer","label":"github.com/OWASP/java-html-sanitizer","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-367H-P22W-H45X"]},"timeline":[{"kind":"published","date":"2025-11-26T01:53:37.578Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-26T15:16:17.063Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":44,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:13:09.451Z","stale":false,"partial":false}}