Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-26870

CVE-2020-26870: Cure53 DOMPurify Mutation XSS Vulnerability

CVE-2020-26870 is a mutation XSS flaw in Cure53 DOMPurify that exploits serialize-parse roundtrip issues with namespace changes from HTML to MathML. This article covers technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-26870 Overview

CVE-2020-26870 is a mutation Cross-Site Scripting (XSS) vulnerability in Cure53 DOMPurify before version 2.0.17. The vulnerability occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, allowing an attacker to exploit namespace changes from HTML to MathML. This behavior can be demonstrated through nesting of FORM elements within SVG or MathML contexts, enabling malicious script execution that bypasses DOMPurify's sanitization filters.

Critical Impact

Attackers can bypass DOMPurify's XSS sanitization through mutation XSS techniques, potentially executing arbitrary JavaScript in victim browsers. This affects multiple enterprise products including Microsoft Visual Studio 2017/2019, Oracle Application Express, and Debian Linux distributions.

Affected Products

  • Cure53 DOMPurify (versions before 2.0.17)
  • Microsoft Visual Studio 2017 (version 15.9)
  • Microsoft Visual Studio 2019 (versions 16.0, 16.4, 16.7, 16.8)
  • Oracle Application Express
  • Debian Linux 9.0

Discovery Timeline

  • 2020-10-07 - CVE-2020-26870 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-26870

Vulnerability Analysis

This mutation XSS vulnerability exploits a fundamental weakness in how DOMPurify sanitizes HTML content. When HTML is parsed, serialized, and re-parsed, the browser's DOM parser may interpret the structure differently than expected. This is particularly problematic when namespace contexts shift between HTML and MathML or SVG. The vulnerability specifically targets the serialize-parse roundtrip behavior where nested FORM elements within mathematical or vector graphics contexts can cause the DOM tree to mutate after sanitization, ultimately executing malicious scripts that were not present in the sanitized output.

The attack exploits the fact that certain HTML elements like <p>, <br>, <form>, and <table> behave differently when nested inside <svg> or <math> elements. When these elements are encountered inside foreign content namespaces, the browser may break out of the foreign namespace context, causing DOM mutations that can reactivate previously sanitized malicious payloads.

Root Cause

The root cause lies in DOMPurify's incomplete handling of elements that trigger namespace breakout behavior. Prior to version 2.0.17, the sanitizer checked for <p>, <br>, and <form> elements within <svg> or <math> contexts but failed to account for <table> elements. This oversight allowed attackers to craft payloads using <table> elements nested within MathML or SVG containers to achieve DOM mutation after the sanitization process completed.

Attack Vector

The attack requires user interaction where a victim must view malicious content that has been processed through the vulnerable DOMPurify version. An attacker crafts specially formatted HTML containing nested FORM or TABLE elements within MathML namespaces. When this content is sanitized by DOMPurify and subsequently rendered in the browser, the serialize-parse roundtrip causes the DOM to mutate, allowing previously neutralized script tags or event handlers to become active.

The network-based attack vector means this can be exploited through any web application that uses DOMPurify for user-supplied content sanitization, including content management systems, forums, email clients, and collaborative editing tools.

javascript
/* Take care of an mXSS pattern using p, br inside svg, math */
-    if ((tagName === 'svg' || tagName === 'math') && currentNode.querySelectorAll('p, br, form').length !== 0) {
+    if ((tagName === 'svg' || tagName === 'math') && currentNode.querySelectorAll('p, br, form, table').length !== 0) {
       _forceRemove(currentNode);
       return true;
     }

Source: GitHub Commit 02724b8

Detection Methods for CVE-2020-26870

Indicators of Compromise

  • Unusual HTML content containing nested <math> or <svg> elements with embedded <form> or <table> tags
  • Web application logs showing attempts to submit content with MathML namespace declarations
  • JavaScript errors or unexpected script execution on pages displaying user-generated content
  • Content containing encoded or obfuscated MathML payloads in input fields or comment sections

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Deploy web application firewalls (WAF) with rules targeting MathML-based XSS patterns
  • Monitor client-side JavaScript errors for signs of mutation XSS exploitation attempts
  • Audit application dependencies to identify instances of DOMPurify versions prior to 2.0.17

Monitoring Recommendations

  • Enable verbose logging for content sanitization operations to track unusual input patterns
  • Set up alerts for CSP violation reports indicating blocked inline script execution
  • Monitor npm/package manager audit results for outdated DOMPurify versions across all projects
  • Review browser console outputs in staging environments for unexpected script execution warnings

How to Mitigate CVE-2020-26870

Immediate Actions Required

  • Upgrade DOMPurify to version 2.0.17 or later immediately across all affected applications
  • Audit all projects using DOMPurify to identify vulnerable versions using npm audit or equivalent tools
  • Implement Content Security Policy headers as a defense-in-depth measure against XSS
  • Review and update Microsoft Visual Studio installations through official security updates

Patch Information

The vulnerability has been addressed in DOMPurify version 2.0.17. The fix adds table to the list of elements that trigger forced removal when found within svg or math contexts. Organizations should update to this version or later through their package managers. For detailed changes, refer to the GitHub Version Comparison between versions 2.0.16 and 2.0.17.

Microsoft has released security updates addressing this vulnerability in Visual Studio products through their Microsoft Security Advisory. Oracle has addressed the issue in Application Express through the Oracle July 2021 Security Alert. Debian users should apply updates referenced in the Debian LTS Announcement.

Workarounds

  • If immediate patching is not possible, implement server-side HTML sanitization as an additional layer
  • Deploy strict Content Security Policy headers that block inline scripts and unsafe-eval
  • Consider temporarily disabling user-generated content features until patching can be completed
  • Implement input validation to reject content containing <math> or <svg> elements if not required
bash
# Update DOMPurify to patched version
npm update dompurify@^2.0.17

# Verify installed version
npm list dompurify

# Run security audit to identify vulnerable packages
npm audit

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCure53 Dompurify

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Debian LTS Announcement

  • Securitum Research on XSS Bypass
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Version Comparison

  • Microsoft Security Advisory CVE-2020-26870

  • Oracle July 2021 Security Alert
  • Related CVEs
  • CVE-2025-15599: Cure53 DOMPurify XSS Vulnerability

  • CVE-2025-26791: Cure53 DOMPurify mXSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English