Skip to main content

fast-xml-parser EUVDEUVD-2026-140536

| CVE-2026-141469 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-12-01 GitHub_M GHSA-7cfw-w2rf-f3jc
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint accepting XML
  2. Delivery
    Craft element with long whitespace run ending in stray '='
  3. Exploit
    Submit few-hundred-KB document
  4. Execution
    scanAttributeTokens rescans whitespace quadratically
  5. Persist
    Node.js event loop blocked tens of seconds
  6. Impact
    Service denial for all clients

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application pass attacker-controlled XML into fast-xml-parser's validation path - specifically XMLValidator.validate(xml) or new XMLParser().parse(xml, true) with the validation argument enabled - on any version <= 5.12.0. The advisory confirms this is reachable on the DEFAULT code path with no non-default options required, so no special configuration is needed beyond invoking validation. The trigger is a crafted attribute section of the form '<element><long whitespace run>=' that forces the quadratic rescan. LIMITING FACTOR: parsing without validation (plain parse(xml) with no validation flag) does not reach scanAttributeTokens, so services that never validate untrusted XML are not exposed; exploitation is otherwise remote and unauthenticated (PR:N, UI:N) against default validator behavior.

Impact

This is a genuine but moderate-severity availability issue, and the signals are internally consistent rather than conflicting. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, 5.3 Medium) describes remote, unauthenticated, low-complexity exploitation with impact limited to availability - no confidentiality or integrity loss - which matches the description of a quadratic-time (CWE-400 / ReDoS-class CWE-1333) stall of the Node.js event loop. SSVC reinforces this: Exploitation=poc (a proof of concept exists, not confirmed active exploitation), Automatable=yes (a single crafted document works reliably and could be scripted/sprayed), and Technical Impact=partial (service degradation, not full compromise). The vuln.today Decision label is 'this_month', i.e. a prioritized-but-not-emergency fix, consistent with a DoS-only flaw. No EPSS score was supplied in the input, and the CVE is not on CISA KEV, so there is no evidence of active in-the-wild exploitation - the exploitation status is 'publicly available exploit code exists' (a complete, measured PoC is embedded in the GHSA advisory), which is distinct from confirmed exploitation. The one caveat worth stating: the advisory notes the issue was 'reproduced only against a clean local install of fast-xml-parser@5.11.2 on the reporter's own machine', so real-world blast radius depends on whether a given deployment actually feeds attacker-controlled XML into the validator. Net: a real priority for any Node service that validates untrusted XML, but a bounded (availability-only) one rather than a critical emergency.

Exploit ScenarioDerived

An attacker sends a single few-hundred-kilobyte XML document - an element whose attribute section is a long whitespace run terminated by a stray '=' (e.g. '<a' + many spaces + '=>') - to any Node.js service that validates or parses-with-validation attacker-controlled XML via fast-xml-parser. The quadratic rescan in scanAttributeTokens stalls the single-threaded event loop for tens of seconds (~45s for a ~200KB input), denying service to all other requests. A runnable, measured proof of concept is published in the GHSA advisory, and because exploitation is low-complexity and unauthenticated (AV:N/AC:L/PR:N), the request requires no special access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.9% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 02, 2026

A quadratic-time denial of service in the npm package fast-xml-parser (versions up to and including 5.12.0) lets a remote, unauthenticated attacker stall the Node.js event loop by submitting a crafted XML document whose attribute section is a long run of whitespace followed by a stray '='. The bug sits in scanAttributeTokens in src/validator.js, which rewinds its cursor to one position after the token start instead of past the offending character, so each loop iteration re-walks most of the remaining whitespace; the published measurements show roughly 30 seconds of stall for a 160 KB input and about 45 seconds at 200 KB. The vulnerable scanner is reached on the default path through XMLValidator.validate(xml) and through new XMLParser().parse(xml, true) when the validation flag is enabled, while plain parsing without validation does not reach it. A public proof-of-concept exists (SSVC exploitation: poc) and the advisory ships a runnable reproduction script; there is no CISA KEV entry, EPSS is not a strong driver here, and the vendor fixed the issue in 5.12.1.

RemediationAI

Vendor-released patch: upgrade fast-xml-parser to 5.12.1 (all versions <= 5.12.0 are vulnerable). The fix is commit 4a1623bc23c011fd5ea0b72c21b00f3109688e6c, which replaces the cursor rewind i = tokenStart + 1 with i++ in scanAttributeTokens and adds performance regression tests; details are in advisory GHSA-7cfw-w2rf-f3jc and release v5.12.1. Update lockfiles and transitive dependency pins, since fast-xml-parser is frequently pulled in indirectly by SOAP, SAML, and other XML-consuming libraries, and rebuild container images so the pinned version actually changes. Given the this_month priority rather than an emergency label and the availability-only impact, patching can be scheduled but should not be deferred indefinitely for internet-facing services that validate user-supplied XML. Where an immediate upgrade is not possible, the effective compensating control is to stop routing untrusted XML through the validator: plain parse without the validation flag does not invoke scanAttributeTokens, though this trades away well-formedness checking and can change how malformed input is handled downstream. Capping inbound XML request body size well below the few-hundred-kilobyte range that produces tens-of-seconds stalls reduces but does not eliminate exposure, since the quadratic cost still applies to whatever size is accepted. Running validation in a worker thread or separate process with a hard timeout contains the event-loop stall to that worker at the cost of added architectural complexity and per-request overhead.

Affected VersionsENISA

fast-xml-parser < 5.12.1

Affected Packages

npm fast-xml-parser fix: 5.12.1

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 a pure-JavaScript XML parser and validator for Node.js and browser runtimes, widely used to convert XML to and from JavaScript objects without C/C++ bindings or callbacks. The flaw is an algorithmic complexity issue (CWE-400 uncontrolled resource consumption, classified in the advisory additionally as CWE-1333 inefficient regular expression complexity) introduced by a recent rewrite of attribute scanning from a regex into a hand-written forward-only scanner. In the vulnerable scanAttributeTokens loop, the code records tokenStart, skips a leading whitespace run, and - when it finds an '=' with no attribute name preceding it - resets the cursor with i = tokenStart + 1 rather than advancing past the '='. For input shaped like '<element><long whitespace run>=', tokenStart advances by one on each outer iteration but the inner loop re-consumes the entire remaining whitespace up to the '=', yielding Theta(n^2) work in the length of the run. The fix in commit 4a1623bc changes that assignment to a simple i++, making the scan genuinely forward-only and linear, and adds regression specs asserting that a 200,000-space attribute section validates in under a second while still returning an InvalidAttr error for a stray '='. The advisory's instrumentation shows the expected quadratic curve (20k -> 461 ms, 40k -> 1755 ms, 80k -> 7108 ms, 160k -> 29847 ms). Because Node.js is single-threaded, the spin blocks all concurrent request handling in the affected process for the duration; impact is availability only, with no confidentiality or integrity effect.

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 (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Remote, unauthenticated, low-complexity single-request trigger on the default validation path (AV:N/AC:L/PR:N/UI:N); impact is temporary event-loop stall, so A:L and C/I:N.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 21:19 EUVD
CVE Published
Dec 01, 2026 - 20:22 cve.org
MEDIUM 5.3

DescriptionCVE.org

fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.12.1, scanAttributeTokens in src/validator.js resets its cursor to one position after the token start when a leading-whitespace run ends in a stray equals sign. Each loop iteration rescans most of the remaining whitespace, producing quadratic processing time for attacker-controlled XML. The default path is reachable through XMLValidator.validate(xml) and through new XMLParser().parse(xml, true) when validation is enabled, allowing a document of a few hundred kilobytes to block the Node.js event loop for tens of seconds and deny service. This issue affects availability only. This issue is fixed in version 5.12.1.

Threat Intelligence Overview

EPSS Score
0.9%
Top 39% exploitable
Prevalence
High
very widely installed Node.js XML parser; advisory calls it most-installed for Node
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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