Vulnerability GHSA-vqhp-cxgc-6wmm

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
6 years ago
March 30, 2020 at 07:45 PM UTC
regular expression denial-of-service (ReDoS) in Bleach
0.1 - 3.1.3
0.1 - 3.1.3

Summary

regular expression denial-of-service (ReDoS) in Bleach

Details

Impact

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

Patches

3.1.4

Workarounds

  • do not whitelist the style attribute in bleach.clean calls

  • limit input string length

References

Credits

  • Reported by schwag09 of r2c

For more information

If you have any questions or comments about this advisory:

Impacted packages

Timeline

Published
6 years ago
March 30, 2020 at 07:45 PM UTC
Fixed (3.1.4)
6 years ago
March 26, 2020 at 02:39 PM UTC
Last Modified
2 months ago
September 10, 2026 at 03:48 AM UTC