CVE-2025-66021
BaseFortify
Publication date: 2025-11-26
Last updated on: 2025-12-30
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| owasp | java_html_sanitizer | 20240325.1 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability affects the OWASP Java HTML Sanitizer version 20240325.1. It occurs when the HtmlPolicyBuilder configuration allows 'noscript' and 'style' tags with the 'allowTextIn' option inside the style tag. This improper sanitization can lead to Cross-Site Scripting (XSS) attacks if an attacker crafts a payload that bypasses CSS sanitization and includes tags not covered by the HTML policy.
How can this vulnerability impact me? :
The vulnerability can lead to Cross-Site Scripting (XSS) attacks, which may allow attackers to execute malicious scripts in the context of a user's browser. This can result in theft of user data, session hijacking, defacement of web content, or other malicious actions that compromise the security and integrity of the affected web application.
What immediate steps should I take to mitigate this vulnerability?
Since no known patch is available at the time of publication, immediate mitigation steps include reviewing and modifying the HtmlPolicyBuilder configuration to avoid allowing noscript and style tags with allowTextIn inside the style tag, thereby preventing unsafe CSS and tag inclusion that could lead to XSS. Additionally, consider implementing additional input validation and output encoding to reduce XSS risks until a patch is released.