CVE-2021-42575

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

published October 18, 2021

CVSS
—
EPSS
3%
Percentile
87.2
In the wild
Unconfirmed
What it is

⚠️ A sneaky flaw in the OWASP Java HTML Sanitizer lets you bypass important security policies for specific HTML tags! Imagine a restaurant that allows patrons to request certain dishes, but doesn’t check if they’re on the menu — it’s a recipe for disaster! This vulnerability is like letting diners order anything, even if it’s not supposed to be served, potentially leading to something undesirable on their plates. An attacker could exploit this flaw to insert malicious content via the SELECT, STYLE, or OPTION elements, leading to possible cross-site scripting (XSS) attacks. This means unauthorized scripts could run in a user's browser, potentially hijacking sessions or stealing sensitive data. While the severity is currently unknown, the implications can be quite serious!

Put simply

Imagine a restaurant that allows patrons to request certain dishes, but doesn’t check if they’re on the menu — it’s a recipe for disaster! This vulnerability is like letting diners order anything, even if it’s not supposed to be served, potentially leading to something undesirable on their plates. This vulnerability occurs because the OWASP Java HTML Sanitizer fails to properly enforce its sanitization policies related to certain HTML elements, allowing for unwanted content to slip through the cracks.

What to do

An attacker could exploit this flaw to insert malicious content via the SELECT, STYLE, or OPTION elements, leading to possible cross-site scripting (XSS) attacks. This means unauthorized scripts could run in a user's browser, potentially hijacking sessions or stealing sensitive data. While the severity is currently unknown, the implications can be quite serious! Upgrade the OWASP Java HTML Sanitizer to version 20211018.1 or later to close this security gap. It’s also a good practice to review how HTML content is sanitized in your application to ensure robust security measures are in place. You've got this! With a quick update, you’ll be one step closer to securing your application. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02975 · 87.2th percentile
Published
2021-10-18T14:38Z
EPSS history
Timeline
  • 18 OCT 14:38Z
    The OWASP Java HTML Sanitizer before 20211018.1 does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements
    cvelistv5