Skip to main content

fast-xml-parser EUVDEUVD-2026-122845

| CVE-2026-126066 LOW
Inefficient Algorithmic Complexity (CWE-407)
2026-11-10 https://github.com/NaturalIntelligence/fast-xml-parser GHSA-474x-hrwr-fgx4
3.7
CVSS 3.1 · Vendor: https://github.com/NaturalIntelligence/fast-xml-parser
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted XML to parser endpoint
  2. Exploit
    Match configured stopNodes element
  3. Execution
    Trigger unbounded rescan of unterminated '<a ' fragments
  4. Impact
    Exhaust CPU and block event loop

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Requires the non-default stopNodes option to be configured on a parsed element AND the service to parse attacker-supplied/untrusted XML; the malicious input must contain many '<a ' (or similar) fragments with no closing '>' anywhere after, inside a matched stop node. LIMITING FACTORS: stopNodes is off by default, so default configurations are not affected; impact is availability-only (event-loop stall, not a crash or data exposure), rated A:L; and AC:H reflects that both the non-default configuration and the specifically-shaped unterminated payload must align. No authentication is required (PR:N, unauthenticated remote attackers).

Impact

All signals point to a genuinely low-priority issue. The CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, 3.7 Low) describes a network-reachable but high-complexity, availability-only flaw with no confidentiality or integrity impact - at worst a temporarily blocked Node.js event loop, not a crash or RCE. The vuln.today decision label is 'monitor', the weakest urgency tier, and the finding is explicitly a static-analysis result that was never benchmarked (author-stated confidence 0.5). No KEV listing and no EPSS score were provided, and no working exploit is referenced: exploitation status is 'no public exploit identified at time of analysis'. The one material constraint, which keeps real-world risk well below even the Low score, is that the bug only triggers when the non-default stopNodes option is configured - most deployments of fast-xml-parser never enable it. MISSING DATA to note: EPSS probability and KEV status are absent from the input (treat as not-exploited rather than confirmed-safe), and the O(n²)/~100KB→~10⁹-ops impact figures are analytical estimates, not measured, so the actual event-loop stall time is unverified. Bottom line: a high-download library but a low-real-risk, config-gated DoS - patch during normal maintenance, not an emergency.

Exploit ScenarioDerived

A Node.js service that parses untrusted XML with the non-default stopNodes option enabled receives a crafted payload shaped like '<stop>' followed by many repeated '<a ' fragments with no closing '>' anywhere after. readStopNodeData() rescans the entire remaining input from every '<', producing O(n²) CPU work (a ~100KB payload is estimated at ~10⁹ character operations, roughly a second or more of blocked event loop) before the parser throws. No working proof-of-concept has been benchmarked - this is a static-analysis finding (confidence 0.5) with only a reproduction recipe, consistent with the AC:H rating.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 11, 2026

Quadratic CPU consumption in fast-xml-parser's stop-node scanning path allows unauthenticated remote attackers to stall a Node.js event loop when applications parse attacker-supplied XML with the non-default stopNodes option enabled. Versions up to and including 5.11.2 are affected; a malicious stop-node body containing many '<a ' fragments with no subsequent '>' forces repeated full scans of the remaining input, producing O(n²) work before the parser finally throws. Impact is availability-only (CVSS 3.1 3.7, A:L) and limited to configurations that opt into stopNodes; the finding originated as a static-analysis result with a public PoC sketch that has not been benchmarked as working exploit code, and no active exploitation has been reported (priority label: monitor).

RemediationAI

Vendor-released patch: upgrade fast-xml-parser to 5.12.0, which contains commit 0c3659348364959da62954b73728fb3bd05ebcb4 caching the next '>' position and bounding the lenient rescan in readStopNodeData() (advisory: https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-474x-hrwr-fgx4). If upgrading is not immediately possible, the direct workaround is to avoid configuring stopNodes on elements that receive untrusted input, since the quadratic path is only reachable through that non-default option; disabling stopNodes for attacker-influenced documents restores linear behavior at the cost of losing the raw-inner-content capture that stopNodes provides. Services that must keep stopNodes enabled should restrict acceptance of attacker-supplied XML or cap request/body size at a layer in front of the parser, accepting that size limits raise the payload cost needed to stall the event loop but do not eliminate the quadratic scaling once such a payload is accepted.

Affected VersionsENISA

fast-xml-parser < 5.12.0

Affected Packages

npm fast-xml-parser fix: 5.12.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

fast-xml-parser is an npm XML parsing library (CWE-407, inefficient algorithmic complexity). In OrderedObjParser.js, parseXml() invokes readStopNodeData() once a configured stop node opens; that routine calls readTagExp() for every non-special '<' character. The underlying tagExpWithClosingIndex() helper scans to end-of-input and returns undefined when no closing '>' exists, and crucially the caller does not advance the index on failure - so each subsequent '<' repeats the identical full scan, yielding quadratic cost. The main parse loop throws immediately on the same failure; only the stop-node path retries, which is why the non-default stopNodes option is the sole prerequisite. The upstream commit 0c3659348364959da62954b73728fb3bd05ebcb4 fixes this by caching the next '>' index and switching to a lenient '<'-based scan after the first failed quote-aware tag scan, returning early when no '>' remains. CPE identifies the affected package as pkg:npm/fast-xml-parser.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/NaturalIntelligence/fast-xml-parser) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

Network-reachable and unauthenticated (AV:N/PR:N), but gated by the non-default stopNodes config plus a specifically-shaped payload (AC:H), causing only partial CPU-exhaustion DoS (A:L; C/I:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/NaturalIntelligence/fast-xml-parser).

CVSS VectorVendor: https://github.com/NaturalIntelligence/fast-xml-parser

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

Summary

With the non-default stopNodes option, a stop node's body with many "<a " fragments and no closing ">" anywhere after makes readStopNodeData() rescan the entire remaining input from every "<". The failed lookahead is neither cached nor bounded, so n fragments cost O(n²) before the parser throws. Availability-only (CPU exhaustion), needs the non-default stopNodes option - not benchmarked yet, see Proof of Concept.

Details

CWE-407 - Inefficient Algorithmic Complexity

Code

  • OrderedObjParser.js:520 - parseXml() calls readStopNodeData() after a matching stop node opens
  • OrderedObjParser.js:810 - calls readTagExp() for every non-special <
  • OrderedObjParser.js:688-722 - tagExpWithClosingIndex() scans to end-of-input and returns undefined when no > exists
  • OrderedObjParser.js:812-818 - on failure, i isn't advanced, so the next < repeats the same full scan
  • OrderedObjParser.js:423 - the main parse loop throws immediately on the same failure; only the stop-node path retries

Root cause: a failed closing-> lookahead is neither cached nor bounded - n copies of <a with no later > means n scans over the remaining input, O(n²) work, before it finally throws.

Fix

  1. Throw immediately in readStopNodeData() when readTagExp() returns undefined
  2. Or break the loop on the first failed scan
  3. Or find the next > once and reuse/bound that result
  4. Add a test asserting near-linear scaling when payload size doubles

Proof of concept

Not benchmarked - static-analysis finding, confidence 0.5.

To confirm: configure stopNodes matching a root element. Build input as '<stop>' + '<a '.repeat(n). Time parse() until it throws Unexpected end of <tag>. Start around n=10,000 and double it - quadratic should show ~4x time per doubling, linear ~2x. Control: same input with a > present, or stopNodes unset.

Impact

CPU-exhaustion DoS in Node.js services parsing untrusted XML with stopNodes enabled. A ~100KB payload is estimated at ~10⁹ character operations (roughly a second or more of blocked event loop) - analytical estimate, not a benchmark. No confidentiality/integrity impact. CVSS 3.1: AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L (3.7, Low).

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 14,793 npm packages depend on fast-xml-parser (2,993 direct, 11,904 indirect)

Ecosystem-wide dependent count for version 5.12.0.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
High
fast-xml-parser is a very widely deployed npm XML-parsing library
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy