CVE-2021-42576

The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated with the SELECT…

published October 18, 2021

CVSS
—
EPSS
2%
Percentile
75.1
In the wild
Unconfirmed
What it is

⚠️ The bluemonday sanitizer might just let a little chaos into your web app! It drops the ball on enforcing policies for SELECT, STYLE, and OPTION elements before versions 1.0.16 for Go and 0.0.8 for Python. 🔥 Think of it like a restaurant that allows customers to write their own orders without checking if the ingredients are safe — you might end up with some bizarre and potentially harmful dishes! An attacker could inject unsafe HTML or CSS, leading to unwanted changes in your site's appearance or functionality. While the impact isn't catastrophic, a crafty adversary could exploit it for phishing or misleading content, making your site look less trustworthy.

Put simply

Think of it like a restaurant that allows customers to write their own orders without checking if the ingredients are safe — you might end up with some bizarre and potentially harmful dishes! This vulnerability allows improper enforcement of sanitization policies in the bluemonday library, specifically regarding the SELECT, STYLE, and OPTION HTML elements. Because of this, malicious content could slip through the cracks, affecting rendered output.

What to do

An attacker could inject unsafe HTML or CSS, leading to unwanted changes in your site's appearance or functionality. While the impact isn't catastrophic, a crafty adversary could exploit it for phishing or misleading content, making your site look less trustworthy. Upgrade to bluemonday version 1.0.16 for Go and 0.0.8 for Python to fix this vulnerability. Additionally, review your application to ensure that all HTML content is properly sanitized before rendering. You've got this! Stay vigilant and keep that web app secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01564 · 75.1th percentile
Published
2021-10-18T14:36Z
EPSS history
Timeline
  • 18 OCT 14:36Z
    The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated with the SELECT…
    cvelistv5