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

VectorAV: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 👾

Weakness Enumeration

Related Identifiers

CVE-2020-6817
DLA-2167-1
GHSA-VQHP-CXGC-6WMM
MGASA-2020-0176
OPENSUSE-SU-2021:0552-1
OPENSUSE-SU-2021:0571-1
OPENSUSE-SU-2021_0552-1
OPENSUSE-SU-2024:11219-1
OPENSUSE-SU-2024:14134-1
PYSEC-2020-340
SNYK-PYTHON-BLEACH-561754
USN-8077-1

Affected Products

Bleach
Linuxmint
Suse
Ubuntu