{"answers":{"affected":"2 open source packages ship an affected version, including com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66021 exists.","fix":"Upgrade com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer to 20260101.1 or later.","what":"CVE-2025-66021 is a high-severity cross-site scripting vulnerability in OWASP java-html-sanitizer, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-66021 and fix it if it is affected.\n\nWhat it is: CVE-2025-66021 is a high-severity cross-site scripting vulnerability in OWASP java-html-sanitizer, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66021 exists.\n\nAffected packages and fixed versions:\n- com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer (Maven): affected from 20240325.1; fixed in 20260101.1\n- com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer (Maven): affected from 20240325.1; fixed in 20260101.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-66021/ (Markdown: https://insights.sbomify.com/CVE-2025-66021/index.md)","id":"CVE-2025-66021","markdown":"https://insights.sbomify.com/CVE-2025-66021/index.md","name":"CVE-2025-66021","record":{"aliases":["CLEANSTART-2026-JC10093","CLEANSTART-2026-JX60561","CLEANSTART-2026-PZ98316","GHSA-g9gq-3pfx-2gw2","MINI-2pm5-wrpf-cjh5","MINI-vjr4-cp2p-4h46","ROOT-APP-MAVEN-CVE-2025-66021"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java HTML Sanitizer","requires_auth":"none","summary":"Attackers can execute arbitrary scripts via crafted noscript and style tags in applications using OWASP Java HTML Sanitizer with specific policies.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"java_html_sanitizer","vendor":"owasp"}],"cvss":{"score":8.6,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization","id":"CVE-2025-66021","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":1,"next":{"headline":"FACTION Unauthenticated Custom Extension Upload leads to RCE","id":"CVE-2025-66022"},"packages":[{"ecosystem":"Maven","fixed":["20260101.1"],"introduced":["20240325.1"],"last_affected":[],"package":"com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer","purl":null,"source":"GHSA-g9gq-3pfx-2gw2"},{"ecosystem":"Maven","fixed":["20260101.1"],"introduced":["20240325.1"],"last_affected":[],"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-g9gq-3pfx-2gw2"}],"prev":{"headline":"Valibot has a ReDoS vulnerability in `EMOJI_REGEX`","id":"CVE-2025-66020"},"products":["java-html-sanitizer"],"published":"2025-11-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-26","vendors":["OWASP"]},"summary":"Attackers can execute arbitrary scripts via crafted noscript and style tags in applications using OWASP Java HTML Sanitizer with specific policies.","url":"https://insights.sbomify.com/CVE-2025-66021/"}