Quadratic CPU consumption in fast-xml-parser stop-node parsing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 13 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-407.
Summary
NaturalIntelligence fast-xml-parser versions before 5.12.0 are affected. When the non-default stopNodes option is enabled, unterminated stop-node bodies make the parser repeatedly rescan the remaining input, an inefficient algorithmic complexity flaw (CWE-407). A remote unauthenticated attacker can send XML with many tag fragments and no closing character, blocking the Node.js event loop and exhausting CPU before parsing fails.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to 5.12.0, when the non-default stopNodes option is enabled, readStopNodeData() in OrderedObjParser.js calls readTagExp() for each less-than character in an unterminated stop-node body and repeatedly rescans the remaining input while looking for a closing greater-than character. An attacker who supplies XML containing many tag fragments without a later closing character can cause quadratic rescanning before parsing fails, blocking a Node.js event loop and causing CPU-exhaustion denial of service. This issue is fixed in version 5.12.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| NaturalIntelligence | fast-xml-parser | before 5.12.0 | 5.12.0 | Patch available | CNA |
| — | fast-xml-parser (npm) | before 5.12.0 | 5.12.0 | Patch available | GHSA-474x-hrwr-fgx4 |
- fast-xml-parser VendorNaturalIntelligence Affected before 5.12.0 Fixed in 5.12.0 Patch available CNA
- fast-xml-parser (npm) Vendor— Affected before 5.12.0 Fixed in 5.12.0 Patch available GHSA-474x-hrwr-fgx4
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:* | — | — | NaturalIntelligence |
- cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:* Versions — — ·NaturalIntelligence
Remediation
Upgrade the NaturalIntelligence fast-xml-parser and the npm fast-xml-parser package to version 5.12.0. Red Hat lists no fix available for Cryostat 4, Migration Toolkit for Applications 8, OpenShift Serverless, Red Hat Advanced Cluster Security 4 and 5, Red Hat Connectivity Link 1, Red Hat Developer Hub 1 and 2, Red Hat OpenShift GitOps, Red Hat OpenShift Virtualization 5, Red Hat Openshift Data Foundation 4 and Self-service automation portal 2. Red Hat has no fix planned for Red Hat OpenShift Virtualization 4.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA fast-xml-parser (NaturalIntelligence) Fixed in 5.12.0
- Fix · GHSA-474x-hrwr-fgx4 fast-xml-parser (npm) Fixed in 5.12.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Cryostat 4 | Affected | No fix yet: Fix deferred |
| Migration Toolkit for Applications 8 | Affected | No fix yet: Fix deferred |
| OpenShift Serverless | Affected | No fix yet: Fix deferred |
| Red Hat Advanced Cluster Security 4 | Affected | No fix yet: Fix deferred |
| Red Hat Advanced Cluster Security 5 | Affected | No fix yet: Fix deferred |
| Red Hat Connectivity Link 1 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 2 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift GitOps | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Virtualization 4 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Virtualization 5 | Affected | No fix yet: Fix deferred |
| Red Hat Openshift Data Foundation 4 | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126066
- 2026-11-10 Alias added: GHSA-474x-hrwr-fgx4
- 2026-11-10 Fix available: npm/[email protected] · GHSA-474x-hrwr-fgx4
- 2026-11-10 CVSS score added · GHSA-474x-hrwr-fgx4
- 2026-11-10 Weakness changed · GHSA-474x-hrwr-fgx4
- 2026-11-10 4 new references · GHSA-474x-hrwr-fgx4
- 2026-11-11 Affected versions changed · Red Hat
- 2026-11-11 CVSS score added · Red Hat
- 2026-11-12 CISA SSVC decision points changed
References
Other 4
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-474x-hrwr-fgx4
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/0c3659348364959da62954b73728fb3bd05ebcb4
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.12.0
- https://github.com/NaturalIntelligence/fast-xml-parser
More NaturalIntelligence vulnerabilities
- TI-2026-20935 fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names CVSS 3.1CRITICAL 9.3
- TI-2026-25482 fast-xml-parser affected by numeric entity expansion bypassing all entity expansion… CVSS 3.1HIGH 7.5
- TI-2026-20291 fast-xml-parser has RangeError DoS Numeric Entities Bug CVSS 3.1HIGH 7.5
- TI-2026-32565 fast-xml-builder: Attribute values with unwanted quotes can bypass malicious or unwanted attributes CVSS 3.1MEDIUM 6.1
- TI-2026-30169 fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters CVSS 3.1MEDIUM 6.1
- TI-2026-25755 fast-xml-parser: Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-126066 · CVE Program
- CVE-2026-126066 · NVD
- FIRST EPSS
- GHSA-474x-hrwr-fgx4 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-126066 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences