CVE-2020-6816
MEDIUM 6.1CVSS 3.1Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag
In Mozilla Bleach before 3.12, a mutation XSS in bleach.clean when RCDATA and either svg or math tags are whitelisted and the keyword argument strip=False.
- Published
- 24 Mar 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security@mozilla.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-m6xf-fq7q-8743PYSEC-2020-28
- Sources
- NVDJSONOSV GHSA-m6xf-fq7q-8743JSONOSV PYSEC-2020-28JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mozilla | bleachcpe:2.3:a:mozilla:bleach:*:*:*:*:*:*:*:* |
< 3.1.2 | 3.1.2 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| OSV | PyPI | bleach | < 3.1.2 | 3.1.2 |
References
- https://advisory.checkmarx.net/advisory/CX-2020-4277 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://github.com/mozilla/bleach/security/advisories/GHSA-m6xf-fq7q-8743 · Third Party Advisory, WEB, ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EDQU2SZLZMSSACCBUBJ6NOSRNNBDYFW5/
- https://www.checkmarx.com/blog/vulnerabilities-discovered-in-mozilla-bleach · Exploit, Third Party Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2020-6816 · ADVISORY
- https://github.com/mozilla/bleach · PACKAGE
- https://github.com/mozilla/bleach/releases/tag/v3.1.2 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2020-28.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EDQU2SZLZMSSACCBUBJ6NOSRNNBDYFW5 · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 24 Mar 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Mar 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Mar 2020)