Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33036: CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') in NaturalIntelligence fast-xml-parser

0
High
VulnerabilityCVE-2026-33036cvecve-2026-33036cwe-776
Published: Fri Mar 20 2026 (03/20/2026, 05:17:03 UTC)
Source: CVE Database V5
Vendor/Project: NaturalIntelligence
Product: fast-xml-parser

Description

fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Versions 4.0.0-beta.3 through 5.5.5 contain a bypass vulnerability where numeric character references (&#NNN;, &#xHH;) and standard XML entities completely evade the entity expansion limits (e.g., maxTotalExpansions, maxExpandedLength) added to fix CVE-2026-26278, enabling XML entity expansion Denial of Service. The root cause is that replaceEntitiesValue() in OrderedObjParser.js only enforces expansion counting on DOCTYPE-defined entities while the lastEntities loop handling numeric/standard entities performs no counting at all. An attacker supplying 1M numeric entity references like A can force ~147MB of memory allocation and heavy CPU usage, potentially crashing the process—even when developers have configured strict limits. This issue has been fixed in version 5.5.6.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/20/2026, 21:39:41 UTC

Technical Analysis

The vulnerability CVE-2026-33036 affects the fast-xml-parser library developed by NaturalIntelligence, specifically versions from 4.0.0-beta.3 up to 5.5.5. This library is used to parse XML data into JavaScript objects without relying on native C/C++ libraries or callbacks, making it popular in JavaScript environments. The root cause lies in improper restriction of recursive entity references within Document Type Definitions (DTDs), classified under CWE-776. Although previous fixes (CVE-2026-26278) introduced limits such as maxTotalExpansions and maxExpandedLength to prevent XML entity expansion attacks, this vulnerability bypasses those protections by exploiting numeric character references (e.g., A) and standard XML entities. The function replaceEntitiesValue() in OrderedObjParser.js enforces expansion counting only on entities defined in the DOCTYPE, but the lastEntities loop that processes numeric and standard entities does not count expansions. An attacker can craft XML input containing a large number (e.g., 1 million) of numeric character references, causing the parser to allocate approximately 147MB of memory and consume significant CPU resources. This results in a denial of service by crashing or severely degrading the performance of the application using the parser. The vulnerability can be triggered remotely without authentication or user interaction by submitting malicious XML data to any service or application that uses the affected fast-xml-parser versions. The issue was addressed and fixed in version 5.5.6 by ensuring that all entity expansions, including numeric and standard entities, are properly counted and limited.

Potential Impact

This vulnerability poses a significant risk to any organization using the affected versions of fast-xml-parser in their software stack, especially those processing untrusted XML input. Exploitation leads to denial of service conditions by exhausting memory and CPU resources, potentially causing application crashes or system instability. This can disrupt critical services, degrade user experience, and increase operational costs due to downtime and recovery efforts. Since the attack requires no authentication or user interaction, it can be exploited remotely by attackers sending crafted XML payloads. This makes internet-facing services that parse XML particularly vulnerable. The impact is primarily on availability, with no direct confidentiality or integrity compromise reported. However, denial of service can indirectly affect business continuity and trust. Organizations relying on fast-xml-parser in web applications, APIs, or backend services should consider this vulnerability a high priority for remediation to avoid service interruptions.

Mitigation Recommendations

The primary mitigation is to upgrade fast-xml-parser to version 5.5.6 or later, where the vulnerability has been fixed. For organizations unable to upgrade immediately, consider implementing input validation and filtering to reject XML inputs containing excessive numeric character references or suspicious entity expansions. Employ runtime resource limits such as memory and CPU usage caps on processes handling XML parsing to reduce the impact of potential exploitation. Use web application firewalls (WAFs) or intrusion prevention systems (IPS) to detect and block XML entity expansion attack patterns. Additionally, review and configure XML parser settings to enforce strict entity expansion limits and disable DTD processing if not required. Monitoring application logs for unusual spikes in resource consumption during XML parsing can help detect attempted exploitation. Finally, educate developers and security teams about this vulnerability to ensure timely patching and secure coding practices.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-17T18:10:50.210Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69bdbd93e2bf98efc48d0f72

Added to database: 3/20/2026, 9:35:15 PM

Last enriched: 3/20/2026, 9:39:41 PM

Last updated: 3/21/2026, 1:22:38 AM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses