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-33349: CWE-1284: Improper Validation of Specified Quantity in Input in NaturalIntelligence fast-xml-parser

0
Medium
VulnerabilityCVE-2026-33349cvecve-2026-33349cwe-1284
Published: Tue Mar 24 2026 (03/24/2026, 19:35:47 UTC)
Source: CVE Database V5
Vendor/Project: NaturalIntelligence
Product: fast-xml-parser

Description

CVE-2026-33349 is a medium severity vulnerability in the fast-xml-parser library versions from 4. 0. 0-beta. 3 up to before 5. 5. 7. The issue arises because the DocTypeReader component uses JavaScript truthy checks on maxEntityCount and maxEntitySize configuration parameters. When these limits are explicitly set to zero, intending to disallow XML entities or restrict their size, the falsy evaluation causes the limits to be bypassed. This allows an attacker supplying crafted XML input to trigger unbounded entity expansion, resulting in memory exhaustion and denial of service (DoS). No authentication or user interaction is required, and the vulnerability can be exploited remotely over the network.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/31/2026, 20:17:54 UTC

Technical Analysis

The vulnerability CVE-2026-33349 affects the fast-xml-parser library, a popular JavaScript-based XML parsing tool that does not rely on C/C++ libraries or callbacks. The root cause is improper validation of the maxEntityCount and maxEntitySize configuration parameters in the DocTypeReader module. These parameters are intended to limit the number and size of XML entities to prevent entity expansion attacks. However, the code uses JavaScript truthy checks to validate these limits. When a developer sets either limit to zero (0) to disable entities or restrict their size to zero bytes, the falsy nature of zero in JavaScript causes the validation to short-circuit and skip the enforcement of these limits. Consequently, an attacker can supply malicious XML input with unbounded entity expansions, leading to excessive memory consumption and denial of service. This vulnerability is classified under CWE-1284 (Improper Validation of Specified Quantity in Input). It affects all versions of fast-xml-parser from 4.0.0-beta.3 up to but not including 5.5.7. The issue was publicly disclosed and patched in version 5.5.7. The CVSS v3.1 base score is 5.9 (medium severity), reflecting a network attack vector, high attack complexity, no privileges or user interaction required, and impact limited to availability (denial of service). No known exploits are currently reported in the wild.

Potential Impact

This vulnerability can cause denial of service conditions in applications using affected versions of fast-xml-parser by allowing attackers to trigger unbounded XML entity expansion. The memory exhaustion can crash or severely degrade the performance of services processing XML input, potentially leading to downtime or degraded user experience. Since fast-xml-parser is widely used in JavaScript environments for XML processing without native dependencies, many web applications, APIs, and backend services could be impacted. The lack of authentication or user interaction requirements means that any attacker able to send XML input to a vulnerable service can exploit this issue remotely. This could be leveraged as part of a larger attack chain to disrupt critical services, especially those relying on XML data interchange. However, the impact is limited to availability; confidentiality and integrity are not directly affected. The medium severity rating reflects the moderate complexity of exploitation and the limited scope of impact to denial of service only.

Mitigation Recommendations

The primary mitigation is to upgrade fast-xml-parser to version 5.5.7 or later, where the issue is fixed by proper validation of maxEntityCount and maxEntitySize parameters without relying on truthy/falsy checks. Until upgrading is possible, developers should avoid setting maxEntityCount or maxEntitySize to zero; instead, set them to a positive integer that enforces strict limits on entity expansion. Additionally, application-level input validation can be implemented to detect and reject XML inputs containing excessive or recursive entity definitions before parsing. Employing runtime resource limits (e.g., memory quotas, process timeouts) on XML parsing operations can help mitigate the impact of potential DoS attempts. Monitoring and logging XML parsing errors and resource usage spikes can provide early detection of exploitation attempts. Finally, developers should review XML parsing configurations and ensure that entity expansion features are disabled or tightly controlled according to the application's security requirements.

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-18T22:15:11.814Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69c2ea08f4197a8e3b6b6441

Added to database: 3/24/2026, 7:46:16 PM

Last enriched: 3/31/2026, 8:17:54 PM

Last updated: 5/7/2026, 11:34:38 AM

Views: 69

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