{"id":"CVE-2020-6817","published":"2023-02-16T00:00:00Z","modified":"2025-03-19T15:21:23Z","title":"bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS)","vendor":"Mozilla","product":"Mozilla Bleach","tier":"tail","description":{"text":"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']}).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00718,"percentile":0.5478,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm","tags":[]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1623633","tags":[]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.96},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"mozilla","affectedVersions":[{"vendor":"Mozilla","product":"Mozilla Bleach","versions":[">= unspecified, < 3.1.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-19T15:21:19.285722Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"bleach","vulnerableRanges":["<3.1.4"],"patched":["3.1.4"],"from":["GHSA-vqhp-cxgc-6wmm","PYSEC-2020-340"],"provenance":"source"}],"summary":{"text":"A flaw in Mozilla Bleach's bleach.clean function causes it to parse style attributes using a regular expression with inefficient complexity, affecting calls where an allowed tag carries an allowed style attribute (for example, attributes={'a': ['style']}). An attacker with network access and no authentication or user interaction can send crafted input containing a style attribute on an allowed tag to trigger a regular expression denial of service, making the application unresponsive when bleach.clean processes it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:20:44Z"},"euvd":{"id":"EUVD-2020-0056","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-7753","published":"2018-03-07","fixed":"2.1.3","kev":false},{"cve":"CVE-2020-6802","published":"2020-03-24","fixed":"3.1.1","kev":false},{"cve":"CVE-2020-6816","published":"2020-03-24","fixed":"3.1.2","kev":false},{"cve":"CVE-2020-6817","published":"2023-02-16","fixed":"3.1.4","kev":false},{"cve":"CVE-2021-23980","published":"2023-02-16","fixed":"3.3.0","kev":false,"link":{"from":"CVE-2020-6817","to":"CVE-2021-23980","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:bleach","fromFixed":"3.1.4","toFixed":"3.3.0","daysApart":0},{"kind":"similar","provenance":"machine","score":0.28,"basis":"same product + description similarity"}]}}],"package":"PyPI:bleach"}}