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-41674

CVE-2026-41674: xmldom XXE Vulnerability

CVE-2026-41674 is an XXE flaw in xmldom that allows attackers to inject arbitrary markup through unsanitized DocumentType fields. This article covers technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-41674 Overview

CVE-2026-41674 is an XML injection vulnerability [CWE-91] in the xmldom and @xmldom/xmldom JavaScript libraries. The packages serialize DocumentType node fields verbatim without escaping or validation. When internalSubset, publicId, or systemId contain attacker-controlled strings, XMLSerializer.serializeToString can terminate the DOCTYPE declaration early. This allows arbitrary markup to appear outside the DOCTYPE in the produced XML output. The flaw affects @xmldom/xmldom before versions 0.9.10 and 0.8.13, and the legacy xmldom package version 0.6.0 and earlier.

Critical Impact

Attackers controlling DocumentType field values can inject arbitrary XML markup into serialized output, breaking document integrity and enabling downstream parser confusion or content spoofing.

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

Discovery Timeline

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

Technical Details for CVE-2026-41674

Vulnerability Analysis

The xmldom library implements a W3C-standard DOMParser and XMLSerializer for JavaScript environments. The serializer writes DocumentType node properties directly into the output stream when producing a DOCTYPE declaration. The implementation does not escape angle brackets, quotes, or other XML control characters before emitting these values. An attacker who can set internalSubset, publicId, or systemId programmatically can inject characters that close the DOCTYPE declaration prematurely. Subsequent input is treated as document-level markup. The flaw is classified as XML injection [CWE-91] and affects integrity of serialized XML without requiring authentication or user interaction.

Root Cause

The root cause is missing output encoding in the XMLSerializer logic that emits DocumentType fields. The serializer concatenates raw string values into the DOCTYPE declaration. It does not validate that publicId and systemId conform to XML production rules. It does not escape >, <, or quote characters in internalSubset content. The serializer trusts that DocumentType properties contain only well-formed values.

Attack Vector

Exploitation requires that an application pass attacker-controlled data into a DocumentType node and then serialize the document. A typical pattern occurs in services that build XML responses from user input, including SAML responses, RSS feeds, SOAP envelopes, or document conversion pipelines. An attacker supplies a string such as "PUBLIC\" \"http://x\"><script>...</script><!--" into a publicId field. After serialization, the resulting XML contains markup outside the DOCTYPE. Downstream consumers parse this injected content as legitimate document structure. The fix in commit 372008f9ae0e20fd69f761c7b79e202598267314 introduces validation and escaping for the affected fields. See the GitHub Security Advisory GHSA-f6ww-3ggp-fr8h for technical details.

Detection Methods for CVE-2026-41674

Indicators of Compromise

  • Serialized XML output containing unexpected elements positioned between the DOCTYPE declaration and the root element.
  • DOCTYPE declarations with publicId or systemId values containing >, <, or quote characters.
  • Application logs showing parser warnings about extra content following the DOCTYPE in generated documents.

Detection Strategies

  • Inventory Node.js dependencies for xmldom and @xmldom/xmldom using npm ls or software composition analysis tools.
  • Audit application code for DOMImplementation.createDocumentType calls that accept untrusted input.
  • Validate serialized XML output against expected schemas before transmission to consumers.

Monitoring Recommendations

  • Monitor build pipelines and lockfiles for vulnerable xmldom versions during dependency resolution.
  • Track outbound XML payloads from applications that perform DOCTYPE generation for anomalous structure.
  • Alert on parser errors in downstream services that consume XML produced by serialization libraries.

How to Mitigate CVE-2026-41674

Immediate Actions Required

  • Upgrade @xmldom/xmldom to version 0.9.10 or 0.8.13 immediately in all affected applications.
  • Remove the legacy unmaintained xmldom package and migrate to the maintained @xmldom/xmldom fork.
  • Audit all code paths that assign user input to DocumentType properties before redeploying.

Patch Information

The maintainers patched this issue in @xmldom/xmldom versions 0.9.10 and 0.8.13. Release notes are available at GitHub Release v0.9.10 and GitHub Release v0.8.13. The fix commit is published at GitHub Commit Details. The legacy xmldom package has not received a patch.

Workarounds

  • Validate and sanitize input before assigning values to internalSubset, publicId, or systemId fields.
  • Reject input containing <, >, or quote characters before passing it to DocumentType constructors.
  • Strip DOCTYPE generation from response paths where DTDs are not required by the consuming parser.
bash
# Configuration example
npm install @xmldom/xmldom@^0.9.10
npm uninstall xmldom
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 Details

  • GitHub Release v0.8.13

  • GitHub Release v0.9.10

  • GitHub Security Advisory GHSA-f6ww-3ggp-fr8h
  • Related CVEs
  • CVE-2026-41675: xmldom XXE Vulnerability in JavaScript

  • 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