PyPA Advisory Database
PYSEC-2020-340
Details
In Mozilla Bleach before 3.1.4, bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | bleach | All versions before 3.1.4 (fixed in 3.1.4) |
References
- https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm
- https://blog.r2c.dev/posts/finding-python-redos-bugs-at-scale-using-dlint-and-r2c/
- https://bugzilla.mozilla.org/show_bug.cgi?id=1623633
- https://github.com/mozilla/bleach/releases/tag/v3.1.4
- https://snyk.io/vuln/SNYK-PYTHON-BLEACH-561754