Live threats

All CVEs / Mozilla

CVE-2020-6817Mozilla Bleach

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.7%
probability of exploitation in 30 days · percentile 55
Auth required
No
Published
Feb 16, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Bleach.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI bleach < 3.1.4 3.1.4 pip install "bleach>=3.1.4"
PyPI bleach < 3.1.4 3.1.4 pip install "bleach>=3.1.4"

Per OSV / GitHub Advisories (GHSA-vqhp-cxgc-6wmm, PYSEC-2020-340). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mozillableach< 3.1.4

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.