PT-2020-19243 · Mozilla+3 · Bleach+3
Schwag09
·
Published
2020-03-30
·
Updated
2026-03-05
·
CVE-2020-6817
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Bleach versions prior to 3.1.4
Description
The
bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={'a': ['style']}).Recommendations
For versions prior to 3.1.4, update to version 3.1.4 to resolve the issue.
As a temporary workaround, consider not whitelisting the
style attribute in bleach.clean calls.
Additionally, limit input string length to minimize the risk of exploitation.Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Bleach
Linuxmint
Suse
Ubuntu