The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-41675

CVE-2026-41675: xmldom XXE Vulnerability in JavaScript

CVE-2026-41675 is an XXE vulnerability in xmldom, a JavaScript XML DOM parser, allowing attackers to inject arbitrary XML nodes through unvalidated processing instructions. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 7, 2026

CVE-2026-41675 Overview

CVE-2026-41675 is an XML injection vulnerability in the @xmldom/xmldom package, a pure JavaScript W3C standard-based DOMParser and XMLSerializer module. The flaw affects @xmldom/xmldom versions prior to 0.9.10 and 0.8.13, as well as the legacy xmldom package version 0.6.0 and earlier. The library serializes attacker-controlled processing instruction (PI) data without validating or neutralizing the PI-closing sequence ?>. Attackers can terminate a processing instruction early and inject arbitrary XML nodes into the serialized output, corrupting downstream XML consumers. The vulnerability is classified under CWE-91: XML Injection.

Critical Impact

Attackers can inject arbitrary XML structure into serialized documents, leading to data integrity compromise in any downstream system that parses the resulting XML.

Affected Products

  • @xmldom/xmldom versions prior to 0.9.10
  • @xmldom/xmldom versions prior to 0.8.13
  • xmldom version 0.6.0 and earlier (legacy package)

Discovery Timeline

  • 2026-05-07 - CVE-2026-41675 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-41675

Vulnerability Analysis

The @xmldom/xmldom library implements XML serialization through its XMLSerializer component. When the serializer encounters a processing instruction node, it writes the node's data field directly into the output stream surrounded by <?target and ?> delimiters. The serializer does not inspect or escape the data payload for the closing sequence ?>. Any caller that constructs a processing instruction using attacker-influenced data exposes the entire serialized document to structural manipulation.

When a downstream consumer parses the resulting XML, the injected nodes are interpreted as legitimate document content. This breaks the integrity boundary between data and markup. The impact extends to any pipeline using xmldom for XML generation, including SAML responses, SOAP envelopes, RSS feeds, and configuration documents.

Root Cause

The root cause is missing output encoding in the processing instruction serialization path. XML processing instructions cannot contain the literal sequence ?> per the W3C XML specification, but xmldom failed to enforce this constraint at serialization time. The fix introduced in commit 7207a4b0e0bcc228868075ed991665ef9f73b1c2 validates PI data before serialization. See the GitHub Security Advisory GHSA-x6wf-f3px-wcqx for the technical writeup.

Attack Vector

Exploitation requires an application that accepts user input and incorporates it into a processing instruction's data field before serialization. The attacker supplies a payload containing ?> followed by arbitrary XML elements. When the serializer writes the PI, the premature ?> closes the processing instruction, and the trailing content becomes part of the XML document tree. No authentication or user interaction is required against vulnerable network-exposed services.

The vulnerability manifests entirely at serialization time. Refer to the GitHub Security Advisory for proof-of-concept details and the impacted code paths.

Detection Methods for CVE-2026-41675

Indicators of Compromise

  • Serialized XML output containing unexpected elements adjacent to processing instructions, particularly the substring ?> followed by < inside a PI boundary.
  • Application logs showing parser errors from downstream XML consumers receiving documents from xmldom-based services.
  • Anomalous SAML, SOAP, or RSS payloads where processing instruction data fields contain XML markup characters.

Detection Strategies

  • Inventory Node.js dependency trees using npm ls @xmldom/xmldom and npm ls xmldom to identify vulnerable versions in production and build environments.
  • Implement integration tests that feed payloads containing ?> sequences into PI data fields and assert serialized output does not contain injected nodes.
  • Use Software Composition Analysis (SCA) tooling to flag any dependency resolving to @xmldom/xmldom < 0.9.10, @xmldom/xmldom < 0.8.13, or xmldom <= 0.6.0.

Monitoring Recommendations

  • Monitor application logs for XML parsing exceptions in services downstream of xmldom serialization.
  • Track outbound XML payloads at API gateways for malformed processing instruction patterns.
  • Alert on dependency drift in CI/CD pipelines when xmldom versions appear in lockfiles below the patched releases.

How to Mitigate CVE-2026-41675

Immediate Actions Required

  • Upgrade @xmldom/xmldom to version 0.9.10 or 0.8.13 immediately across all projects and lockfiles.
  • Stop using the unmaintained legacy xmldom package and migrate to @xmldom/xmldom.
  • Audit application code for any path where untrusted input flows into a processing instruction's data field and add input validation.

Patch Information

The maintainers released fixes in @xmldom/xmldom 0.9.10 and @xmldom/xmldom 0.8.13. The patch is implemented in commit 7207a4b, which validates PI data and rejects content containing the ?> sequence at serialization time.

Workarounds

  • Reject or sanitize the substring ?> in any user-controlled input before assigning it to a processing instruction's data field.
  • Avoid generating processing instructions from untrusted data entirely; use static PI declarations where possible.
  • Wrap the XMLSerializer in a guard that scans serialized output for unexpected node boundaries near PI delimiters before transmission.
bash
# Configuration example
npm install @xmldom/xmldom@0.9.10
# or for the 0.8.x line
npm install @xmldom/xmldom@0.8.13
npm audit --production

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

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/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-91
  • Technical References
  • GitHub Commit Update

  • GitHub Release 0.8.13

  • GitHub Release 0.9.10

  • GitHub Security Advisory GHSA-x6wf-f3px-wcqx
  • Related CVEs
  • CVE-2026-41674: xmldom XXE Vulnerability

  • CVE-2026-41672: xmldom XXE Vulnerability

  • CVE-2026-34601: xmldom XML Injection Vulnerability

  • CVE-2022-39353: Xmldom_project Xmldom XXE 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