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
    • 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-2023-26920

CVE-2023-26920: Fast XML Parser Prototype Pollution Flaw

CVE-2023-26920 is a prototype pollution vulnerability in Fast XML Parser that allows attackers to manipulate object prototypes via __proto__. This article covers technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-26920 Overview

CVE-2023-26920 is a Prototype Pollution vulnerability affecting fast-xml-parser, a popular npm package used for parsing XML documents in JavaScript applications. The vulnerability exists in versions prior to 4.1.2, where the parser fails to sanitize the __proto__ property when processing XML attribute names and element names. This allows an attacker to inject properties into JavaScript Object prototypes through specially crafted XML input.

Critical Impact

Attackers can exploit this vulnerability to pollute JavaScript Object prototypes via malicious XML input, potentially leading to denial of service, property injection, or in some cases, remote code execution depending on how the parsed data is subsequently used by the application.

Affected Products

  • naturalintelligence fast_xml_parser versions prior to 4.1.2

Discovery Timeline

  • 2023-12-12 - CVE CVE-2023-26920 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-26920

Vulnerability Analysis

Prototype Pollution is a JavaScript-specific vulnerability that occurs when user-controlled input can modify the prototype of base objects like Object.prototype. In the case of fast-xml-parser, the vulnerability exists because the library does not sanitize property names when parsing XML attributes and child elements.

When an attacker supplies XML with attribute names or element tags containing __proto__, the parser directly uses these values as object keys. This allows the attacker to inject or modify properties on the Object prototype, which will then be inherited by all JavaScript objects in the application. The impact can range from denial of service to arbitrary code execution, depending on how the application processes the polluted objects.

Root Cause

The root cause lies in the absence of input validation for reserved JavaScript property names in two key files: OrderedObjParser.js and xmlNode.js. When processing XML attributes and child nodes, the parser directly used the provided names as object keys without checking for dangerous prototype-related properties like __proto__.

Attack Vector

The attack is conducted over the network, requiring the attacker to submit crafted XML input to an application using a vulnerable version of fast-xml-parser. The attacker needs low-level privileges (such as the ability to submit XML data to the application) and requires no user interaction. By including XML elements or attributes named __proto__, the attacker can pollute the Object prototype when the XML is parsed.

The security patch addresses this vulnerability by detecting and sanitizing the __proto__ property name:

javascript
         if (this.options.transformAttributeName) {
           aName = this.options.transformAttributeName(aName);
         }
+        if(aName === "__proto__") aName  = "#__proto__";
         if (oldVal !== undefined) {
           if (this.options.trimValues) {
             oldVal = oldVal.trim();

Source: GitHub Commit for XML Parser

Additional fixes were applied in the xmlNode.js file:

javascript
   }
   add(key,val){
     // this.child.push( {name : key, val: val, isCdata: isCdata });
+    if(key === "__proto__") key = "#__proto__";
     this.child.push( {[key]: val });
   }
   addChild(node) {
+    if(node.tagname === "__proto__") node.tagname = "#__proto__";
     if(node[":@"] && Object.keys(node[":@"]).length > 0){
       this.child.push( { [node.tagname]: node.child, [":@"]: node[":@"] });
     }else{

Source: GitHub Commit for XML Parser

Detection Methods for CVE-2023-26920

Indicators of Compromise

  • XML input containing __proto__ as element names or attribute names in application logs
  • Unexpected property pollution detected in JavaScript objects during application debugging
  • Anomalous behavior in downstream code that processes parsed XML data
  • Application crashes or unexpected behavior following XML parsing operations

Detection Strategies

  • Implement Software Composition Analysis (SCA) tools to identify vulnerable versions of fast-xml-parser (< 4.1.2) in your dependency tree
  • Monitor application logs for XML payloads containing suspicious property names like __proto__, constructor, or prototype
  • Use runtime application self-protection (RASP) to detect prototype pollution attempts
  • Deploy Web Application Firewalls (WAF) with rules to block XML payloads containing prototype pollution patterns

Monitoring Recommendations

  • Audit npm dependencies regularly using npm audit or similar security scanning tools
  • Implement logging for XML parsing operations to identify suspicious input patterns
  • Monitor for unexpected modifications to Object.prototype in runtime environments
  • Set up alerts for security advisories related to fast-xml-parser and similar XML parsing libraries

How to Mitigate CVE-2023-26920

Immediate Actions Required

  • Upgrade fast-xml-parser to version 4.1.2 or later immediately
  • Audit your application codebase for usage of fast-xml-parser and verify all instances are updated
  • Review dependency lock files (package-lock.json, yarn.lock) to ensure no transitive dependencies use vulnerable versions
  • Test application functionality after upgrading to ensure compatibility

Patch Information

The vulnerability has been addressed in fast-xml-parser version 4.1.2. The fix implements sanitization of the __proto__ property by replacing it with #__proto__ during parsing operations. This prevents the dangerous prototype pollution while still preserving the data in a safe format.

Review the GitHub Security Advisory GHSA-793h-6f7r-6qvm for complete details on the security fix. The patch commit is available at GitHub Commit for XML Parser.

Workarounds

  • Implement input validation to reject XML containing __proto__ attribute or element names before parsing
  • Use Object.freeze(Object.prototype) as a temporary measure to prevent prototype modification (note: this may break some applications)
  • Wrap parsed output with Object.create(null) to create prototype-less objects when possible
bash
# Update fast-xml-parser to the patched version
npm update fast-xml-parser@^4.1.2

# Verify the installed version
npm list fast-xml-parser

# Run npm audit to check for other vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechNaturalintelligence Fast Xml Parser

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.23%

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

  • GitHub Security Advisory GHSA-793h-6f7r-6qvm
  • Vendor Resources
  • GitHub Commit for XML Parser
  • Related CVEs
  • CVE-2026-33349: Fast-xml-parser DoS Vulnerability

  • CVE-2026-33036: Fast-xml-parser DOS 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