CVE-2026-26278

fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)

Published Feb 19, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. In versions 4.1.3 through 5.3.5, the XML parser can be forced to do an unlimited amount of entity expansion. With a very small XML input, it’s possible to make the parser spend seconds or even minutes processing a single request, effectively freezing the application. Version 5.3.6 fixes the issue. As a workaround, avoid using DOCTYPE parsing by `processEntities: false` option.

Analysis

AI-generated

Technical impact

In versions 4.1.3 through 5.3.5, the fast‑xml‑parser library processes XML without limiting entity expansion in a DOCTYPE declaration, allowing a crafted XML document to trigger repetitive entity expansions that consume CPU and memory and can cause the application to stall. This defect results in a denial of service and is categorized as a resource exhaustion flaw (CWE‑776).

Affected Systems

The vulnerability affects NaturalIntelligence’s fast‑xml‑parser library in releases 4.1.3 to 5.3.5. A fix was released in version 5.3.6, after which the unlimited expansion behavior was removed.

Risk and Exploitability

With a CVSS score of 7.5 the vulnerability is of high severity, yet its EPSS score is below 1% and it is not listed in CISA’s KEV catalog, indicating a low probability of exploitation in the wild. An attacker would need to supply XML input to a vulnerable application or API that parses XML, and the attack would consume system resources to render the service unavailable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade fast‑xml‑parser to version 5.3.6 or newer.
  • If an upgrade cannot be performed immediately, configure the parser to disable DOCTYPE processing by setting processEntities to false.
  • Monitor the application for unusually long XML parse times and high resource consumption to detect potential abuse.

Generated by OpenCVE AI on April 16, 2026 at 16:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jmr7-xgp7-cmfj fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)
History
Type Values Removed Values Added
CPEs cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Naturalintelligence
Naturalintelligence fast-xml-parser
Vendors & Products Naturalintelligence
Naturalintelligence fast-xml-parser
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. In versions 4.1.3 through 5.3.5, the XML parser can be forced to do an unlimited amount of entity expansion. With a very small XML input, it’s possible to make the parser spend seconds or even minutes processing a single request, effectively freezing the application. Version 5.3.6 fixes the issue. As a workaround, avoid using DOCTYPE parsing by `processEntities: false` option.
Title fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)
Weaknesses CWE-776
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-776

    Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 10, 2026, 12:05 PM
Reserved
Feb 12, 2026, 5:10 PM
Status
Modified
Published
Feb 19, 2026, 8:25 PM
Modified
Sep 10, 2026, 1:17 PM
Severity
Important
Public date
Feb 19, 2026, 7:40 PM