Skip to main content
EPSS 0.8%top 44%

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

0
High
VulnerabilityCVE-2026-26278cvecve-2026-26278cwe-776gcve
Published: 02/19/2026 (02/19/2026, 19:40:55 UTC)
Source: CVE Database V5
Vendor/Project: NaturalIntelligence
Product: fast-xml-parser

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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

NaturalIntelligence

fast-xml-parser

Affected versions
>=5.0.0 <5.3.6>=4.1.3 <4.5.4

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 14:40:54 UTC

Technical Analysis

The fast-xml-parser library versions 4.1.3 through 5.3.5 are vulnerable to CWE-776, improper restriction of recursive entity references in DTDs, also known as XML Entity Expansion. This flaw allows an attacker to provide a specially crafted XML input that forces the parser to perform unlimited entity expansion, leading to excessive resource consumption and denial of service by freezing the application. The vulnerability has a CVSS v3.1 base score of 7.5, indicating high severity with network attack vector, low complexity, no privileges or user interaction required, and high impact on availability. The issue is resolved in version 5.3.6. The vendor advisory and Red Hat advisory confirm the denial of service impact and recommend upgrading to the fixed version. A temporary mitigation is to disable entity processing by setting processEntities to false, avoiding DOCTYPE parsing.

Potential Impact

An attacker can cause a denial of service by sending a small, specially crafted XML input that triggers unlimited entity expansion in the vulnerable versions of fast-xml-parser. This leads to excessive CPU and memory consumption, freezing the application and making it unavailable for legitimate users. There is no impact on confidentiality or integrity. The vulnerability can be exploited remotely without authentication or user interaction.

Mitigation Recommendations

Upgrade fast-xml-parser to version 5.3.6 or later, which contains the official fix for this vulnerability. As a workaround, if upgrading is not immediately possible, disable DOCTYPE parsing by setting the processEntities option to false to prevent entity expansion. Note that Red Hat advisories indicate that some mitigations may not meet their criteria for ease of use or stability, so upgrading is the recommended approach.

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-02-12T17:10:53.414Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-26278","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6174","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6802","vendor":"Red Hat"}]

Threat ID: 69978157d7880ec89b3497a7

Added to database: 02/19/2026, 21:32:07 UTC

Last enriched: 08/14/2026, 14:40:54 UTC

Last updated: 09/10/2026, 19:46:16 UTC

Views: 287

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