{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-6817","id":"CVE-2020-6817","title":"regular expression denial-of-service (ReDoS) in Bleach","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']}).","descriptionLong":"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":"2023-02-16T00:00:00.000Z","updated":"2026-10-20T10:54:23.342990607Z","reserved":"2020-01-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mozilla","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["Mozilla Bleach"],"affectedProducts":[{"vendor":"Mozilla","product":"Mozilla Bleach","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"3.1.4","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"bleach","purl":"pkg:pypi/bleach","ranges":["<3.1.4"],"fixed":["3.1.4"],"advisory":"GHSA-vqhp-cxgc-6wmm"}],"cwes":["CWE-1333","CWE-400"],"aliases":["GHSA-vqhp-cxgc-6wmm","PYSEC-2020-340","SNYK-PYTHON-BLEACH-561754"],"references":[{"url":"https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm","tags":["x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1623633","tags":["x_transferred","Exploit","Issue Tracking","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-6817","tags":["advisory"]},{"url":"https://github.com/mozilla/bleach","tags":["package"]},{"url":"https://github.com/mozilla/bleach/releases/tag/v3.1.4","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2020-340.yaml","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-PYTHON-BLEACH-561754","tags":["web","advisory"]},{"url":"https://blog.r2c.dev/posts/finding-python-redos-bugs-at-scale-using-dlint-and-r2c/","tags":["article"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00718,"epssPercentile":0.54582,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-6817","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-6817","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-6817","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vqhp-cxgc-6wmm","ok":true,"note":"GHSA-vqhp-cxgc-6wmm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-6817","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}