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-2025-15599

CVE-2025-15599: Cure53 DOMPurify XSS Vulnerability

CVE-2025-15599 is an XSS vulnerability in Cure53 DOMPurify that enables attackers to bypass sanitization using textarea rawtext elements. This article covers technical details, affected versions, impact, and mitigation.

Published: March 6, 2026

CVE-2025-15599 Overview

CVE-2025-15599 is a cross-site scripting (XSS) vulnerability affecting DOMPurify, a popular DOM-only XSS sanitizer library for HTML, MathML, and SVG. The vulnerability exists in versions 3.1.3 through 3.2.6 and 2.5.3 through 2.5.8, allowing attackers to bypass attribute sanitization by exploiting missing textarea rawtext element validation in the SAFE_FOR_XML regex. This flaw enables malicious actors to include closing rawtext tags like </textarea> in attribute values to break out of rawtext contexts and execute JavaScript when sanitized output is placed inside rawtext elements.

Critical Impact

Attackers can execute arbitrary JavaScript in victim browsers by bypassing DOMPurify's XSS sanitization, potentially leading to session hijacking, credential theft, and unauthorized actions on behalf of users.

Affected Products

  • Cure53 DOMPurify versions 3.1.3 through 3.2.6
  • Cure53 DOMPurify versions 2.5.3 through 2.5.8
  • Applications using vulnerable DOMPurify versions for HTML sanitization

Discovery Timeline

  • 2026-03-03 - CVE-2025-15599 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2025-15599

Vulnerability Analysis

This vulnerability falls under CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw stems from an incomplete regex pattern in DOMPurify's SAFE_FOR_XML sanitization logic that fails to account for textarea rawtext element contexts.

When DOMPurify processes HTML content, it applies various sanitization rules to strip potentially dangerous elements and attributes. However, the vulnerability allows attackers to craft malicious input containing closing rawtext tags (such as </textarea>) within attribute values. When this sanitized content is subsequently placed inside rawtext elements by the application, the closing tag breaks out of the intended context, allowing the attacker to inject and execute arbitrary JavaScript code.

The 3.x branch has been patched in version 3.2.7, while the 2.x branch remains unpatched, affecting all vulnerable 2.x versions indefinitely.

Root Cause

The root cause is a missing validation check for textarea rawtext elements in DOMPurify's SAFE_FOR_XML regex pattern. The sanitization logic did not properly escape or reject closing rawtext tags (like </textarea>) when they appeared within attribute values. This oversight allows crafted payloads to persist through the sanitization process and later break out of their intended context when rendered.

Attack Vector

The attack is network-based and requires user interaction, as it exploits standard XSS attack patterns. An attacker can exploit this vulnerability through the following approach:

  1. The attacker crafts malicious HTML input containing a closing rawtext tag (e.g., </textarea>) embedded within an attribute value
  2. The victim application passes this input through DOMPurify for sanitization
  3. DOMPurify fails to detect the embedded closing tag due to the incomplete regex validation
  4. The application places the "sanitized" output inside a rawtext element such as <textarea>
  5. The browser parses the closing tag, breaking out of the textarea context
  6. Subsequent attacker-controlled content, including JavaScript, executes in the victim's browser

This bypass is particularly dangerous because developers trust DOMPurify's output to be safe, and may place sanitized content in rawtext contexts without additional validation.

Detection Methods for CVE-2025-15599

Indicators of Compromise

  • Unusual HTTP requests containing </textarea> or similar rawtext closing tags within attribute values
  • Client-side JavaScript errors originating from unexpected script execution in sanitized content areas
  • User reports of unexpected behavior or pop-ups on pages that use DOMPurify for sanitization
  • Web application logs showing malformed HTML payloads targeting input fields

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block unauthorized inline script execution
  • Deploy web application firewall (WAF) rules to flag requests containing rawtext closing tags in suspicious contexts
  • Monitor JavaScript error logs for anomalies that may indicate XSS payload execution
  • Conduct regular dependency audits to identify vulnerable DOMPurify versions in your codebase

Monitoring Recommendations

  • Enable detailed logging for user input processing and sanitization operations
  • Set up alerts for CSP violation reports which may indicate XSS exploitation attempts
  • Monitor network traffic for patterns consistent with XSS payload delivery
  • Review application logs for unusual HTML patterns in user-submitted content

How to Mitigate CVE-2025-15599

Immediate Actions Required

  • Upgrade DOMPurify to version 3.2.7 or later for applications using the 3.x branch
  • For applications using the 2.x branch, migrate to the 3.x branch as the 2.x branch was never patched
  • Audit all instances where DOMPurify-sanitized output is placed inside rawtext elements like <textarea>, <title>, <script>, or <style>
  • Implement additional server-side validation as a defense-in-depth measure

Patch Information

Cure53 has released a security patch in DOMPurify version 3.2.7 that addresses this vulnerability. The fix can be reviewed in the GitHub commit c861f5a83fb8d90800f1680f855fee551161ac2b. Organizations should update their DOMPurify dependency immediately. Note that the 2.x branch remains unpatched, and users of those versions should migrate to the 3.x branch. For additional technical details, refer to the VulnCheck Advisory.

Workarounds

  • Avoid placing DOMPurify-sanitized output directly inside rawtext elements (<textarea>, <title>, <script>, <style>)
  • Apply additional HTML entity encoding when inserting sanitized content into rawtext contexts
  • Implement strict Content Security Policy (CSP) headers to mitigate the impact of potential XSS exploitation
  • Consider using server-side sanitization as a secondary layer of protection for critical applications
bash
# Update DOMPurify via npm
npm update dompurify@3.2.7

# Or update via yarn
yarn upgrade dompurify@3.2.7

# Verify installed version
npm list dompurify

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 Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub DOMPurify Repository

  • VulnCheck Advisory on DOMPurify
  • Vendor Resources
  • GitHub DOMPurify Commit
  • Related CVEs
  • CVE-2025-26791: Cure53 DOMPurify mXSS Vulnerability

  • CVE-2020-26870: Cure53 DOMPurify Mutation XSS 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