CVE-2020-6817Mozilla Bleach
High 7.5 No auth needed
Follow: this CVE · Mozilla · Mozilla Bleach We alert you by email or Slack (account required).
- 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']}).
What to do
- Apply the vendor's security update for Bleach.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| mozilla | bleach | < 3.1.4 |
Official advisories
- python313-bleach-6.4.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11323-1 · Jul 21, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.mozilla.org Exploit Issue Tracking
- github.com Vendor Advisory