# CVE-2020-6817: regular expression denial-of-service (ReDoS) in Bleach

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-03-30T19:45:00.000Z
- Modified: 2026-09-10T03:48:29.583Z
- Also known as: GHSA-vqhp-cxgc-6wmm, PYSEC-2020-340, SNYK-PYTHON-BLEACH-561754
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mozilla

## Description

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

(As written by CVE List.)

## Affected

- Mozilla Mozilla Bleach: from unspecified before 3.1.4
- bleach (PyPI): before 3.1.4
- mozilla bleach: before 3.1.4

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://bugzilla.mozilla.org/show_bug.cgi?id=1623633> (exploit, issue-tracking, report, web)
- <https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-6817> (advisory)
- <https://github.com/mozilla/bleach> (package)
- <https://github.com/mozilla/bleach/releases/tag/v3.1.4> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2020-340.yaml> (web)
- <https://snyk.io/vuln/SNYK-PYTHON-BLEACH-561754> (advisory, web)
- <https://blog.r2c.dev/posts/finding-python-redos-bugs-at-scale-using-dlint-and-r2c/> (article)

## Sources

- CVE List: [CVE-2020-6817](https://www.cve.org/CVERecord?id=CVE-2020-6817), CVE Terms of Use, modified 2025-03-19
- GitHub Advisory Database: [GHSA-vqhp-cxgc-6wmm](https://github.com/advisories/GHSA-vqhp-cxgc-6wmm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-6817](https://nvd.nist.gov/vuln/detail/CVE-2020-6817), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-340](https://osv.dev/vulnerability/PYSEC-2020-340), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-6817 · Whole record: https://cve.day/CVE-2020-6817.json · Rebuilt by cve.day 2026-11-25T22:57:58.812Z
