PT-2020-2103 · Mozilla+3 · Bleach+3
Yaniv Nizry
·
Published
2020-03-20
·
Updated
2026-03-05
·
CVE-2020-6816
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Mozilla Bleach versions prior to 3.12
Description
A mutation XSS issue affects users calling
bleach.clean with specific settings, including whitelisting svg or math tags, allowing RCDATA tags, and setting the strip keyword argument to False. This could potentially allow a remote attacker to impact data integrity.Recommendations
For versions prior to 3.1.2: Upgrade to bleach v3.1.2 or greater.
As a temporary workaround, consider modifying
bleach.clean calls to use strip=True, or not whitelisting math or svg tags and one or more of the following tags: script, noscript, style, noframes, xmp, noembed, iframe.
Implementing a strong Content-Security-Policy without unsafe-inline and unsafe-eval script-srcs will also help mitigate the risk.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Bleach
Linuxmint
Suse
Ubuntu