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-2026-34601

CVE-2026-34601: xmldom XML Injection Vulnerability

CVE-2026-34601 is an XML injection flaw in xmldom that allows attackers to inject malicious XML markup through CDATA sections. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 2, 2026

CVE-2026-34601 Overview

CVE-2026-34601 is an XML Injection vulnerability in xmldom, a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. The vulnerability allows attackers to inject malicious XML markup by inserting attacker-controlled strings containing the CDATA terminator ]]> into a CDATASection node. During serialization, XMLSerializer emitted the CDATA content verbatim without rejecting or safely splitting the terminator, causing data intended to remain text-only to become active XML markup in the serialized output.

Critical Impact

This vulnerability enables XML structure injection and downstream business-logic manipulation, allowing attackers to break out of CDATA sections and inject arbitrary XML elements that will be processed by downstream parsers.

Affected Products

  • xmldom versions 0.6.0 and prior
  • @xmldom/xmldom versions prior to 0.8.12
  • @xmldom/xmldom versions prior to 0.9.9

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-34601 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-34601

Vulnerability Analysis

This vulnerability is classified under CWE-91 (XML Injection). The core issue lies in the createCDATASection method's failure to validate input data for the presence of the CDATA terminator sequence ]]>. In XML, CDATA sections are delimited by <![CDATA[ at the start and ]]> at the end. When user-controlled data containing the ]]> sequence is placed within a CDATA section and subsequently serialized, the embedded terminator prematurely closes the CDATA section, allowing any following content to be interpreted as active XML markup rather than literal text.

The network-based attack vector with no required privileges or user interaction makes this vulnerability particularly concerning for applications that process XML from untrusted sources. Attackers can exploit this to manipulate document structure, inject malicious elements, or alter business logic in applications that rely on the integrity of XML data structures.

Root Cause

The root cause is the lack of input validation in the createCDATASection method. The original implementation accepted any string data without checking for the presence of the illegal ]]> sequence, which is forbidden within CDATA section content per the XML specification. The XMLSerializer then faithfully serialized this content without any safety checks, allowing the CDATA boundary to be broken during output generation.

Attack Vector

The attack exploits the trust boundary between CDATA text content and XML markup. An attacker can supply a string such as harmless text]]><malicious>injected</malicious><![CDATA[ as input to a CDATA section. When serialized, this becomes:

<![CDATA[harmless text]]><malicious>injected</malicious><![CDATA[]]>

The <malicious>injected</malicious> portion is now interpreted as active XML elements by any downstream parser, enabling XML structure injection and potential business-logic manipulation.

Security Patch (index.d.ts):

typescript
 		createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
 
 		/**
-		 * Returns a CDATASection node whose data is data.
+		 * Returns a new CDATASection node whose data is `data`.
 		 *
-		 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
+		 * __This implementation differs from the specification:__ - calling this method on an HTML
+		 * document does not throw `NotSupportedError`.
+		 *
+		 * @throws {DOMException}
+		 * With code `INVALID_CHARACTER_ERR` if `data` contains `"]]>"`.
+		 * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection
+		 * @see https://dom.spec.whatwg.org/#dom-document-createcdatasection
 		 */
 		createCDATASection(data: string): CDATASection;

Source: GitHub Commit Details

Security Patch (lib/dom.js):

javascript
 	return node;
 },
 /**
+	 * Returns a new CDATASection node whose data is `data`.
+	 *
+	 * __This implementation differs from the specification:__ - calling this method on an HTML
+	 * document does not throw `NotSupportedError`.
+	 *
 	 * @param {string} data
 	 * @returns {CDATASection}
+	 * @throws {DOMException}
+	 * With code `INVALID_CHARACTER_ERR` if `data` contains `"]]>"`.
+	 * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection
+	 * @see https://dom.spec.whatwg.org/#dom-document-createcdatasection
 	 */
 createCDATASection: function (data) {
+	if (data.indexOf(']]>') !== -1) {
+		throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'data contains "]]>"');
+	}
 	var node = new CDATASection(PDC);
 	node.ownerDocument = this;
 	node.childNodes = new NodeList();

Source: GitHub Commit Details

Detection Methods for CVE-2026-34601

Indicators of Compromise

  • Input strings containing the ]]> sequence being passed to XML processing functions
  • Unexpected XML structure changes in serialized output compared to expected document structure
  • Application errors or exceptions related to XML parsing failures downstream from xmldom processing
  • Log entries showing INVALID_CHARACTER_ERR exceptions after patching (indicating potential exploitation attempts)

Detection Strategies

  • Implement input validation monitoring to detect strings containing ]]> sequences before they reach XML processing components
  • Deploy application-layer logging to capture and analyze all data being processed through createCDATASection calls
  • Use static application security testing (SAST) tools to identify vulnerable xmldom versions in your codebase
  • Monitor dependency manifests (package.json, package-lock.json) for vulnerable xmldom versions

Monitoring Recommendations

  • Configure SentinelOne Singularity to monitor Node.js applications for suspicious XML processing patterns
  • Enable runtime application self-protection (RASP) capabilities to detect and block XML injection attempts
  • Set up alerting for any DOMException errors with INVALID_CHARACTER_ERR codes in application logs
  • Monitor network traffic for payloads containing CDATA terminator sequences targeting XML endpoints

How to Mitigate CVE-2026-34601

Immediate Actions Required

  • Upgrade xmldom to version 0.6.0 or later
  • Upgrade @xmldom/xmldom to version 0.8.12 or 0.9.9 or later
  • Audit application code for any custom handling of CDATA sections that may bypass the library's validation
  • Review and validate all XML input sources to ensure untrusted data is properly sanitized

Patch Information

The vulnerability has been patched in xmldom version 0.6.0 and @xmldom/xmldom versions 0.8.12 and 0.9.9. The fix adds validation in the createCDATASection method to throw a DOMException with code INVALID_CHARACTER_ERR if the input data contains the ]]> sequence. This prevents the creation of CDATASection nodes with potentially malicious content that could break out of CDATA boundaries during serialization.

Patches are available through the following resources:

  • GitHub Release 0.8.12
  • GitHub Release 0.9.9
  • GitHub Security Advisory GHSA-wh4c-j3r5-mjhp

Workarounds

  • Implement input sanitization to strip or escape ]]> sequences from user-controlled data before passing to CDATA processing
  • Use allowlist validation for characters permitted in CDATA content
  • Consider using alternative XML encoding methods (such as entity encoding) for untrusted content instead of CDATA sections
  • Deploy a Web Application Firewall (WAF) rule to detect and block requests containing CDATA terminator patterns
bash
# Update xmldom to patched version
npm update xmldom@latest

# Or for @xmldom/xmldom scoped package
npm update @xmldom/xmldom@latest

# Verify installed version
npm list xmldom
npm list @xmldom/xmldom

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

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechXmldom

  • SeverityHIGH

  • CVSS Score7.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-91
  • Technical References
  • GitHub Commit Details

  • GitHub Release 0.8.12

  • GitHub Release 0.9.9

  • GitHub Security Advisory GHSA-wh4c-j3r5-mjhp
  • Related CVEs
  • CVE-2022-39353: Xmldom_project Xmldom XXE Vulnerability

  • CVE-2021-32796: Xmldom_project Xmldom XXE Vulnerability

  • CVE-2021-21366: Xmldom_project Xmldom XXE Vulnerability

  • CVE-2022-37616: Xmldom Prototype Pollution 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