All reports
Medium

XSS in Bleach when noscript and raw tag whitelisted

Affected versions

Version ranges need review.

Affected versions
< 3.1.1
Fixed version
3.1.1
Affected versions
<3.1.1
Fixed version
3.1.1

Exploitation

CVE-2020-6802

Probability of exploitation in the next 30 days: 1.73%

FIRST EPSS · 2026-11-22

Description

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
  • modify bleach.clean calls to not whitelist noscript and one or more of the following raw tags:

title
textarea
script
style
noembed
noframes
iframe
xmp
References
Credits
  • Reported by Yaniv Nizry from the CxSCA AppSec group at Checkmarx

For more information

If you have any questions or comments about this advisory:

Links