# CVE-2020-6816: Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-03-24T15:06:32.000Z
- Modified: 2026-07-08T06:00:46.400Z
- Also known as: GHSA-m6xf-fq7q-8743, PYSEC-2020-28
- Weaknesses: CWE-79
- Assigned by: mozilla

## Description

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.

(As written by CVE List.)

## Affected

- Mozilla Bleach: <=3.11; before 3.1.2
- bleach (PyPI): before 3.1.2
- fedoraproject fedora: 33

## Every score

- GitHub: 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`
- GitHub: CVSS:4.0 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`
- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://www.checkmarx.com/blog/vulnerabilities-discovered-in-mozilla-bleach> (exploit, article, third-party-advisory, web)
- <https://advisory.checkmarx.net/advisory/CX-2020-4277> (exploit, advisory, third-party-advisory, web)
- <https://github.com/mozilla/bleach/security/advisories/GHSA-m6xf-fq7q-8743> (advisory, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EDQU2SZLZMSSACCBUBJ6NOSRNNBDYFW5/> (vendor-advisory)
- <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)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EDQU2SZLZMSSACCBUBJ6NOSRNNBDYFW5/> (web)

## Sources

- CVE List: [CVE-2020-6816](https://www.cve.org/CVERecord?id=CVE-2020-6816), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-m6xf-fq7q-8743](https://github.com/advisories/GHSA-m6xf-fq7q-8743), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-6816](https://nvd.nist.gov/vuln/detail/CVE-2020-6816), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-28](https://osv.dev/vulnerability/PYSEC-2020-28), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-6816 · Whole record: https://cve.day/CVE-2020-6816.json · Rebuilt by cve.day 2026-11-25T22:57:51.649Z
