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']})``.

  • CVSS V3 rated as Medium - 4.2 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    3.1.4Workaround:
    * do not whitelist the style attribute in `bleach.clean` calls

    * limit input string length
    Vendor References

    CVEs related to QID 981571

    Software Advisories
    Advisory ID Software Component Link
    GHSA-vqhp-cxgc-6wmm bleach URL Logo github.com/advisories/GHSA-vqhp-cxgc-6wmm