CVE-2020-6802 json
XSS in Bleach when noscript and raw tag whitelisted
published 2020-02-24 6 y ago modified 2026-07-08 4 mo ago also GHSA-q65m-pv3f-wr5r , PYSEC-2020-27 , EUVD-2020-0054
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi bleach 3.1.1
- mozilla bleach 3.1.1
- python-bleach Debian 14, Debian 13, Debian 12 3.1.1-1
debian advisories DEBIAN-CVE-2020-6802
- python-bleach Ubuntu Pro 18.04 LTS 2.1.2-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2020-6802
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-bleach openSUSE Tumbleweed 6.4.0-1.1
- python-bleach openSUSE Tumbleweed 6.1.0-1.5
- weblate openSUSE Tumbleweed 4.8.1-1.1
- python-bleach Package Hub 15 SP1 3.1.1-bp151.4.4.1
- python-bleach openSUSE Leap 15.1 3.1.1-lp151.3.6.1
opensuse advisories openSUSE-SU-2026:11323-1openSUSE-SU-2024:14134-1openSUSE-SU-2024:11507-1openSUSE-SU-2020:0325-1openSUSE-SU-2020:0308-1
- py3-bleach Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 3.1.1-r0
alpine advisories ALPINE-CVE-2020-6802
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-6802 updated cvss 6.1
python-bleach: mutation XSS vulnerability
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.73% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- checkmarx.com https://www.checkmarx.com/blog/vulnerabilities-discovered-in-mozilla-bleach referenced PoC, tagged "exploit" by a source, unverified
- advisory.checkmarx.net https://advisory.checkmarx.net/advisory/CX-2020-4276 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | bleach | <3.1.1 |
3.1.1 |
Affected products
- n/a Mozilla Bleach
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/mozilla/bleach/commit/f77e0f6392177a06e46a49abd61a4d9f035e57fd
web
-
checkmarx.com
/blog/vulnerabilities-discovered-in-mozilla-bleach
web, exploit, third-party-advisory, article
-
advisory.checkmarx.net
/advisory/CX-2020-4276
web, exploit, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/OCNLM2MGQTOLCIVVYS2Z5S7KOQJR5JC4/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/72R4VFFHDRSQMNT7IZU3X2755ZP4HGNI/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/YTULPQB7HVPPYWEYVNHJGDTSPVIDHIZX/
vendor-advisory
-
github.com
/mozilla/bleach/security/advisories/GHSA-q65m-pv3f-wr5r
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-6802
advisory
-
bugzilla.mozilla.org
/show_bug.cgi?id=1615315
web
-
cure53.de
/fp170.pdf
web
-
github.com
/mozilla/bleach
package
-
github.com
/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2020-27.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/72R4VFFHDRSQMNT7IZU3X2755ZP4HGNI
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/OCNLM2MGQTOLCIVVYS2Z5S7KOQJR5JC4
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/YTULPQB7HVPPYWEYVNHJGDTSPVIDHIZX
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/OCNLM2MGQTOLCIVVYS2Z5S7KOQJR5JC4/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/72R4VFFHDRSQMNT7IZU3X2755ZP4HGNI/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/YTULPQB7HVPPYWEYVNHJGDTSPVIDHIZX/
web
Sources
- CVE List CVE-2020-6802
- GitHub Advisory GHSA-q65m-pv3f-wr5r
- NVD CVE-2020-6802
- OSV PYSEC-2020-27
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.