CVE-2020-6802
XSS in Bleach when noscript and raw tag whitelisted
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.1
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
CVE-2020-6802- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
CVE-2020-6802- Updated
- 2026-11-02
EUVDEUVD-2020-0054 No score
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
EUVD-2020-0054- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-q65m-pv3f-wr5r
5.3
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
- modify
bleach.cleancalls to not whitelistnoscriptand one or more of the following raw tags:
title
textarea
script
style
noembed
noframes
iframe
xmp
- A strong Content-Security-Policy without
unsafe-inlineandunsafe-evalscript-srcs) will also help mitigate the risk.
References
- https://bugzilla.mozilla.org/show_bug.cgi?id=1615315
- https://cure53.de/fp170.pdf
- https://nvd.nist.gov/vuln/detail/CVE-2020-6802
- https://www.checkmarx.com/blog/vulnerabilities-discovered-in-mozilla-bleach
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:
- Open an issue at https://github.com/mozilla/bleach/issues
- Email us at [email protected]
- Record
GHSA-q65m-pv3f-wr5r- CVSS 4.0
- 5.3 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVALPINE-CVE-2020-6802
6.1
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
ALPINE-CVE-2020-6802- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-03
OSV
6.1
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
CVE-2020-6802- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Show 11 moreShow less
OSVDEBIAN-CVE-2020-6802
6.1
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
DEBIAN-CVE-2020-6802- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVGHSA-q65m-pv3f-wr5r
5.3
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
- modify
bleach.cleancalls to not whitelistnoscriptand one or more of the following raw tags:
title
textarea
script
style
noembed
noframes
iframe
xmp
- A strong Content-Security-Policy without
unsafe-inlineandunsafe-evalscript-srcs) will also help mitigate the risk.
References
- https://bugzilla.mozilla.org/show_bug.cgi?id=1615315
- https://cure53.de/fp170.pdf
- https://nvd.nist.gov/vuln/detail/CVE-2020-6802
- https://www.checkmarx.com/blog/vulnerabilities-discovered-in-mozilla-bleach
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:
- Open an issue at https://github.com/mozilla/bleach/issues
- Email us at [email protected]
- Record
GHSA-q65m-pv3f-wr5r- CVSS 4.0
- 5.3 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-6802
6.1
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
UBUNTU-CVE-2020-6802- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVMGASA-2020-0125 No score
Updated python-bleach packages fix security vulnerability
The updated packages fix a security vulnerability:
Mutation XSS in bleach.clean when noscript and raw tag whitelisted. (CVE-2020-6802)
- Record
MGASA-2020-0125- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0308-1 No score
Security update for python-bleach
This update for python-bleach to version 3.1.1 fixes the following issue:
- Python-bleach was updated to 3.1.1
- CVE-2020-6802: Fixed mutation XSS vulnerabilities (boo#1165303).
- Record
openSUSE-SU-2020:0308-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0325-1 No score
Security update for python-bleach
This update for python-bleach to version 3.1.1 fixes the following issue:
- Python-bleach was updated to 3.1.1
- CVE-2020-6802: Fixed mutation XSS vulnerabilities (boo#1165303).
This update was imported from the openSUSE:Leap:15.1:Update update project.
- Record
openSUSE-SU-2020:0325-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11219-1 No score
python36-bleach-3.3.0-1.4 on GA media
These are all security issues fixed in the python36-bleach-3.3.0-1.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11219-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11507-1 No score
weblate-4.8.1-1.1 on GA media
These are all security issues fixed in the weblate-4.8.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11507-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14134-1 No score
python310-bleach-6.1.0-1.5 on GA media
These are all security issues fixed in the python310-bleach-6.1.0-1.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14134-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11323-1 No score
python313-bleach-6.4.0-1.1 on GA media
These are all security issues fixed in the python313-bleach-6.4.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11323-1- Updated
- 2026-11-02
OSVPYSEC-2020-27 No score
In Mozilla Bleach before 3.11, a mutation XSS affects users calling bleach.clean with noscript and a raw tag in the allowed/whitelisted tags option.
- Record
PYSEC-2020-27- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
bleachPyPI |
before 3.1.1 | 3.1.1 |
py3-bleachAlpine:v3.11 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.12 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.13 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.14 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.15 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.16 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.17 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.18 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.19 |
before 3.1.1-r0 | 3.1.1-r0 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
py3-bleachAlpine:v3.20 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.21 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.22 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.23 |
before 3.1.1-r0 | 3.1.1-r0 |
py3-bleachAlpine:v3.24 |
before 3.1.1-r0 | 3.1.1-r0 |
python-bleachDebian:12 |
before 3.1.1-1 | 3.1.1-1 |
python-bleachDebian:13 |
before 3.1.1-1 | 3.1.1-1 |
python-bleachDebian:14 |
before 3.1.1-1 | 3.1.1-1 |
python-bleachDebian:10 |
before 3.1.1-0+deb10u1, plus listed versions 3.1.0-13.1.0-2 |
3.1.1-0+deb10u1 |
bleachPyPI |
before 3.1.1, plus listed versions 0.10.1.10.1.20.20.2.1 Show 36 moreShow less0.2.20.30.3.10.3.30.3.40.5.00.5.11.0.01.0.11.0.21.0.31.0.41.1.01.1.11.1.21.1.31.1.41.1.51.21.2.11.2.21.41.4.11.4.21.4.31.5.02.0.02.12.1.12.1.22.1.32.1.43.0.03.0.13.0.23.1.0 |
3.1.1 |
python-bleachMageia:7 |
before 3.1.1-1.mga7 | 3.1.1-1.mga7 |
python-bleachUbuntu:Pro:18.04:LTS |
before 2.1.2-1ubuntu0.1~esm1, plus listed versions 2.0-12.1.2-1 |
2.1.2-1ubuntu0.1~esm1 |
python-bleachopenSUSE:Leap 15.1 |
before 3.1.1-lp151.3.6.1 | 3.1.1-lp151.3.6.1 |
python-bleachSUSE:Package Hub 15 SP1 |
before 3.1.1-bp151.4.4.1 | 3.1.1-bp151.4.4.1 |
weblateopenSUSE:Tumbleweed |
before 4.8.1-1.1 | 4.8.1-1.1 |
python-bleachopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 6.1.0-1.5 | 6.1.0-1.5 |
python-bleachopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 6.4.0-1.1 | 6.4.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-6802 is a medium vulnerability (CVSS 6.1) in Mozilla Bleach, published February 24, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.73%, the 77th percentile. Fixed in bleach 3.1.1.
References
github.com/mozilla/bleach/security/advisories/GHSA-q65m-pv3f-wr5r
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OCNLM2MGQTOLCIVVYS2Z5S7KOQJR5JC4
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/72R4VFFHDRSQMNT7IZU3X2755ZP4HGNI
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTULPQB7HVPPYWEYVNHJGDTSPVIDHIZX
checkmarx.com/blog/vulnerabilities-discovered-in-mozilla-bleach
advisory.checkmarx.net/advisory/CX-2020-4276
Show 26 moreShow less
github.com/mozilla/bleach/commit/f77e0f6392177a06e46a49abd61a4d9f035e57fd
bugzilla.mozilla.org/show_bug.cgi?id=1615315
cure53.de/fp170.pdf
nvd.nist.gov/vuln/detail/CVE-2020-6802
github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2020-27.yaml
lists.fedoraproject.org/archives/list/[email protected]/message/72R4VFFHDRSQMNT7IZU3X2755ZP4HGNI
lists.fedoraproject.org/archives/list/[email protected]/message/OCNLM2MGQTOLCIVVYS2Z5S7KOQJR5JC4
lists.fedoraproject.org/archives/list/[email protected]/message/YTULPQB7HVPPYWEYVNHJGDTSPVIDHIZX
github.com/advisories/GHSA-q65m-pv3f-wr5r
security.alpinelinux.org/vuln/CVE-2020-6802
security-tracker.debian.org/tracker/CVE-2020-6802
github.com/mozilla/bleach
advisories.mageia.org/MGASA-2020-0125.html
bugs.mageia.org/show_bug.cgi?id=26286
debian.org/security/2020/dsa-4636
ubuntu.com/security/CVE-2020-6802
cve.org/CVERecord?id=CVE-2020-6802
ubuntu.com/security/notices/USN-8077-1
lists.opensuse.org/archives/list/[email protected]/thread/42YYAZLSUO2H6HI5G3EGIRCDDAHTGJGK
bugzilla.suse.com/1165303
suse.com/security/cve/CVE-2020-6802
lists.opensuse.org/archives/list/[email protected]/thread/FWUX2BHDV6ER4EK7BZ3BABNQIAP7B2N2
suse.com/security/cve/CVE-2018-7753
suse.com/security/cve/CVE-2020-6816
suse.com/security/cve/CVE-2020-6817
suse.com/security/cve/CVE-2021-23980