Security mailing lists by PureSourceCode

CVE-2020-6817

HIGH 7.5CVSS 3.1

regular expression denial-of-service (ReDoS) in Bleach

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

Published
16 Feb 2023
Last modified
10 Sep 2026
Assigned by
security@mozilla.org
NVD status
Modified
Weakness
CWE-1333CWE-400
Also known as
GHSA-vqhp-cxgc-6wmmPYSEC-2020-340SNYK-PYTHON-BLEACH-561754
Sources
NVDJSONOSV GHSA-vqhp-cxgc-6wmmJSONOSV PYSEC-2020-340JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mozilla bleach
cpe:2.3:a:mozilla:bleach:*:*:*:*:*:*:*:*
< 3.1.4 3.1.4
OSV PyPI bleach < 3.1.4 3.1.4

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 16 Feb 2023)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Mar 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Mar 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.