bleach
Affected
- introduced
0, fixed3.1.1(ecosystem)
Fixed versions
3.1.1
Fix
- Fixed version
3.1.1pip install --upgrade bleach==3.1.1
Advisory
Also known as: CVE-2020-6802, PYSEC-2020-27
XSS in Bleach when noscript and raw tag whitelisted
Impact
A mutation XSS affects users calling bleach.clean with noscript and a raw tag (see below) in the allowed/whitelisted tags option.
Patches
v3.1.1
Workarounds
bleach.clean calls to not whitelist noscript and one or more of the following raw tags:title
textarea
script
style
noembed
noframes
iframe
xmp
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.1 (ecosystem)3.1.1
3.1.1pip install --upgrade bleach==3.1.1Fix 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