CVE-2020-26870
MEDIUM 6.1CVSS 3.1Cross-site Scripting in dompurify
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.
- Published
- 7 Oct 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-63q7-h895-m982
- Sources
- NVDJSONOSV GHSA-63q7-h895-m982JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| 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 | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
< 2.0.17 | 2.0.17 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | microsoft | visual_studio_2017cpe:2.3:a:microsoft:visual_studio_2017:15.9:*:*:*:*:*:*:* |
= 15.9 | |
| NVD | microsoft | visual_studio_2019cpe:2.3:a:microsoft:visual_studio_2019:16.0:*:*:*:*:*:*:* |
= 16.0 | |
| NVD | microsoft | visual_studio_2019cpe:2.3:a:microsoft:visual_studio_2019:16.4:*:*:*:*:*:*:* |
= 16.4 | |
| NVD | microsoft | visual_studio_2019cpe:2.3:a:microsoft:visual_studio_2019:16.7:*:*:*:*:*:*:* |
= 16.7 | |
| NVD | microsoft | visual_studio_2019cpe:2.3:a:microsoft:visual_studio_2019:16.8:*:*:*:*:*:*:* |
= 16.8 | |
| NVD | oracle | application_expresscpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:* |
< 21.1.0.00.01 | 21.1.0.00.01 |
| OSV | npm | dompurify | < 2.0.17 | 2.0.17 |
References
- 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://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/ · Exploit, Third Party 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://snyk.io/vuln/SNYK-JS-DOMPURIFY-1016634 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 7 Oct 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 18 Dec 2020)