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/27/2026, 22:37:37 UTC

Technical Analysis

CVE-2026-33036 is a vulnerability classified under CWE-776 (Improper Restriction of Recursive Entity References in DTDs) affecting the fast-xml-parser library developed by NaturalIntelligence. This library is widely used in JavaScript environments to parse XML data without relying on C/C++ libraries or callbacks. The vulnerability exists in versions from 4.0.0-beta.3 up to 5.5.5, where numeric character references (e.g., &#NNN;, &#xHH;) and standard XML entities are not properly accounted for in the entity expansion limits designed to prevent XML entity expansion attacks (a type of denial of service). The parser's function replaceEntitiesValue() enforces expansion limits only on entities defined in the DOCTYPE section, while numeric and standard entities processed in the lastEntities loop bypass these checks entirely. An attacker can exploit this by supplying XML containing a large number (e.g., one million) of numeric character references such as A, which expands to the character 'A'. This causes the parser to allocate approximately 147MB of memory and consume significant CPU resources, potentially crashing the application or service using the parser. The vulnerability does not require any privileges or user interaction to exploit and can be triggered remotely by processing malicious XML input. The issue was addressed and fixed in version 5.5.6 of fast-xml-parser.

Potential Impact

The primary impact of CVE-2026-33036 is a denial of service (DoS) condition caused by excessive memory allocation and CPU consumption when processing malicious XML inputs. This can lead to application crashes, service outages, or degraded performance, affecting availability. Since fast-xml-parser is commonly used in web applications, APIs, and backend services that handle XML data, exploitation could disrupt critical business operations, especially in environments processing untrusted XML data. The vulnerability does not affect confidentiality or integrity directly but can indirectly impact system reliability and availability. Organizations relying on fast-xml-parser in production environments may face service interruptions, increased operational costs due to downtime, and potential cascading failures in dependent systems. The ease of exploitation (no authentication or user interaction required) increases the risk of automated attacks or exploitation by remote adversaries. Although no known exploits are reported in the wild yet, the vulnerability's high CVSS score (7.5) and straightforward exploitation method make it a significant threat.

Mitigation Recommendations

To mitigate CVE-2026-33036, organizations should immediately upgrade fast-xml-parser to version 5.5.6 or later, where the vulnerability is fixed. If upgrading is not immediately feasible, implement strict input validation and sanitization to reject XML inputs containing excessive numeric character references or suspicious entity expansions. Employ XML parsing configurations that disable or limit entity expansion features where possible. Monitor application logs and resource usage for unusual spikes in memory or CPU consumption that may indicate exploitation attempts. Consider deploying Web Application Firewalls (WAFs) with rules to detect and block XML entity expansion attacks. Additionally, conduct code reviews and dependency audits to identify and remediate usage of vulnerable fast-xml-parser versions across all projects. Educate developers and DevOps teams about secure XML parsing practices and the risks of entity expansion vulnerabilities. Finally, maintain up-to-date threat intelligence feeds to stay informed about any emerging exploits targeting this vulnerability.

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/27/2026, 10:37:37 PM

Last updated: 5/1/2026, 5:21:56 AM

Views: 90

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