bleach
Affected
- introduced
0, fixed3.1.2(ecosystem)
Fixed versions
3.1.2
Fix
- Fixed version
3.1.2pip install --upgrade bleach==3.1.2
Advisory
Also known as: CVE-2020-6816, PYSEC-2020-28
Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag
Impact
A mutation XSS affects users calling bleach.clean with all of:
svg or math in the allowed/whitelisted tagsstrip=FalsePatches
Users are encouraged to upgrade to bleach v3.1.2 or greater.
Workarounds
bleach.clean calls to use strip=True, or not whitelist math or svg tags and one or more of the following tags:script
noscript
style
noframes
xmp
noembed
iframe
unsafe-inline and unsafe-eval `script-src`s) will also help mitigate the risk.References
Credits
For more information
If you have any questions or comments about this advisory:
Medium Basis: The source's own band: MODERATE
0, fixed 3.1.2 (ecosystem)3.1.2
3.1.2pip install --upgrade bleach==3.1.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0