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

CVE-2026-33349: Fast-xml-parser DoS Vulnerability

CVE-2026-33349 is a denial of service vulnerability in fast-xml-parser that allows attackers to bypass entity expansion limits and cause memory exhaustion. This post covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-33349 Overview

CVE-2026-33349 is a Denial of Service vulnerability in fast-xml-parser, a popular JavaScript library that allows users to process XML from JS objects without C/C++ based libraries or callbacks. The vulnerability exists in the DocTypeReader component, which improperly validates entity limit configurations due to JavaScript's truthy/falsy evaluation behavior. When developers explicitly set maxEntityCount or maxEntitySize to 0 with the intention of completely disabling entity processing, the JavaScript truthy check causes these security controls to be bypassed entirely.

Critical Impact

An attacker who can supply XML input to affected applications can trigger unbounded entity expansion, leading to memory exhaustion and denial of service conditions.

Affected Products

  • naturalintelligence fast-xml-parser versions 4.0.0-beta.3 through 5.5.6
  • Applications using fast-xml-parser with maxEntityCount set to 0
  • Applications using fast-xml-parser with maxEntitySize set to 0

Discovery Timeline

  • 2026-03-24 - CVE CVE-2026-33349 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33349

Vulnerability Analysis

The vulnerability stems from improper input validation in the DocTypeReader component of fast-xml-parser. When processing XML documents containing entity declarations, the library checks the maxEntityCount and maxEntitySize configuration options to enforce limits on entity expansion. However, these checks use JavaScript's implicit boolean coercion rather than explicit numeric comparisons.

In JavaScript, the value 0 is considered "falsy," meaning it evaluates to false in boolean contexts. When a developer sets maxEntityCount: 0 or maxEntitySize: 0 intending to completely prohibit entity usage, the guard conditions evaluate the falsy 0 as if the configuration were undefined or not set. This causes the library to fall back to default behavior, allowing unlimited entity expansion instead of blocking all entities as intended.

This type of input validation flaw (CWE-1284) is particularly insidious because it subverts explicit security configurations. Developers who believe they have implemented the strictest possible security settings are actually left completely unprotected.

Root Cause

The root cause is the use of JavaScript truthy checks to evaluate numeric configuration values. Code patterns such as if (maxEntityCount) or maxEntityCount || defaultValue treat the explicit value 0 identically to undefined or null. The proper approach requires explicit comparison operators like if (maxEntityCount !== undefined && maxEntityCount !== null) or using typeof checks combined with numeric comparisons.

Attack Vector

The attack vector is network-based, requiring an attacker to supply malicious XML input to an application using the vulnerable library. The attack can be executed without authentication or user interaction, though it requires high attack complexity as the target application must be configured with entity limits explicitly set to 0.

An attacker would craft an XML document containing recursive or deeply nested entity definitions, commonly known as an XML bomb or billion laughs attack. When parsed by the vulnerable library, the entity expansion proceeds without bounds, rapidly consuming available memory until the application crashes or becomes unresponsive.

The vulnerability mechanism involves the DocTypeReader component's improper handling of zero-value configurations. When maxEntityCount or maxEntitySize is set to 0, the truthy check evaluates this as falsy, bypassing the intended restrictions and allowing unlimited entity expansion. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-33349

Indicators of Compromise

  • Sudden spikes in memory consumption on servers processing XML input
  • Application crashes or out-of-memory errors during XML parsing operations
  • Slow response times or timeouts when handling XML requests
  • Log entries showing extremely large entity expansion counts

Detection Strategies

  • Audit application configurations for fast-xml-parser instances using maxEntityCount: 0 or maxEntitySize: 0
  • Implement runtime monitoring for memory consumption during XML parsing operations
  • Use dependency scanning tools to identify vulnerable versions of fast-xml-parser in your codebase
  • Monitor for XML documents containing suspicious DOCTYPE declarations with entity definitions

Monitoring Recommendations

  • Enable memory profiling for applications that process untrusted XML input
  • Set up alerts for abnormal memory growth patterns during XML parsing
  • Implement request logging to capture XML payloads for forensic analysis
  • Configure application-level timeouts for XML processing operations

How to Mitigate CVE-2026-33349

Immediate Actions Required

  • Upgrade fast-xml-parser to version 5.5.7 or later immediately
  • Review all application configurations using fast-xml-parser to identify instances with zero-value entity limits
  • As a temporary measure, set entity limits to 1 instead of 0 to enforce restrictions while awaiting patching
  • Implement input validation to reject XML documents with DOCTYPE declarations from untrusted sources

Patch Information

The vulnerability has been patched in fast-xml-parser version 5.5.7. The fix ensures that zero values for maxEntityCount and maxEntitySize are properly respected as explicit limits rather than being bypassed by truthy evaluation. The patch is available in commit 239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7. Users should update their package dependencies to incorporate this security fix.

Workarounds

  • Set maxEntityCount and maxEntitySize to 1 instead of 0 as a temporary restriction
  • Implement a pre-parser filter to strip or reject DOCTYPE declarations before passing XML to fast-xml-parser
  • Use web application firewalls to block XML payloads containing entity definitions
  • Consider disabling XML entity processing entirely at the application architecture level if not required
bash
# Update fast-xml-parser to patched version
npm update fast-xml-parser@5.5.7

# Verify installed version
npm list fast-xml-parser

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNaturalintelligence Fast Xml Parser

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1284
  • Vendor Resources
  • GitHub Commit Record

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33036: Fast-xml-parser DOS Vulnerability

  • CVE-2023-26920: Fast XML Parser Prototype Pollution Flaw
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