Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint accepting XML
-
DeliveryCraft element with long whitespace run ending in stray '='
-
ExploitSubmit few-hundred-KB document
-
ExecutionscanAttributeTokens rescans whitespace quadratically
-
PersistNode.js event loop blocked tens of seconds
-
ImpactService 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-140536
GHSA-7cfw-w2rf-f3jc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB