CVE-2020-6816: Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5788%
CWE
Published
3/24/2020
Updated
9/12/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
bleach | pip | < 3.1.2 | 3.1.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability documentation explicitly references bleach.clean
as the entry point with specific parameter combinations (whitelisted tags + strip=False). The core issue stems from how Bleach's sanitizer processes content in SVG/math XML namespaces when RCDATA tags are allowed, failing to account for browser parsing differences. The function
's handling of these edge cases in the HTML sanitization process is directly addressed in the v3.1.2 patch.