CVE-2020-6817

published 16 Feb 2023 · updated 18 Feb 2026

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']}).

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Bleach 3.1.4.

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']}).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MozillaBleach<3.1.43.1.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Mozilla, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-6817 severity on Zeptric[![CVE-2020-6817](https://zeptric.io/badge/cve/CVE-2020-6817.svg)](https://zeptric.io/cve/CVE-2020-6817)