QID 981571
QID 981571: Python (pip) Security Update for bleach (GHSA-vqhp-cxgc-6wmm)
Security update has been released for bleach to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
`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']})``.
Solution
3.1.4Workaround:
* do not whitelist the style attribute in `bleach.clean` calls
* limit input string length
* do not whitelist the style attribute in `bleach.clean` calls
* limit input string length
Vendor References
- GHSA-vqhp-cxgc-6wmm -
github.com/advisories/GHSA-vqhp-cxgc-6wmm
CVEs related to QID 981571
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-vqhp-cxgc-6wmm | bleach |
|