# CVE-2020-26870: Cross-site Scripting in dompurify

- 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): 4.88%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-10-07T15:50:09.000Z
- Modified: 2026-06-17T03:08:26.847Z
- Also known as: GHSA-63q7-h895-m982
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

Cure53 DOMPurify before 2.0.17 allows mutation XSS. This occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, and a namespace can change from HTML to MathML, as demonstrated by nesting of FORM elements.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- dompurify (npm): before 2.0.17
- cure53 dompurify: before 2.0.17
- debian debian_linux: 9.0
- microsoft visual_studio_2017: 15.9
- microsoft visual_studio_2019: 16.0; 16.4; 16.7; 16.8
- oracle application_express: before 21.1.0.00.01

## 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`
- 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://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/> (exploit, third-party-advisory)
- <https://github.com/cure53/DOMPurify/commit/02724b8eb048dd219d6725b05c3000936f11d62d> (patch, third-party-advisory, web)
- <https://github.com/cure53/DOMPurify/compare/2.0.16...2.0.17> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/10/msg00029.html> (mailing-list, third-party-advisory, web)
- <https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-26870> (patch, vendor-advisory, web)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26870> (advisory)
- <https://github.com/cure53/DOMPurify> (package)
- <https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass> (web)
- <https://snyk.io/vuln/SNYK-JS-DOMPURIFY-1016634> (web)

## Sources

- CVE List: [CVE-2020-26870](https://www.cve.org/CVERecord?id=CVE-2020-26870), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-63q7-h895-m982](https://github.com/advisories/GHSA-63q7-h895-m982), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-26870](https://nvd.nist.gov/vuln/detail/CVE-2020-26870), Public domain, modified 2026-06-17

---

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