All vulnerabilities

npm

CVE-2026-126066

fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags

Severity
Low 3.7
Published
10 Nov 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
5.12.0
Exploit chance
0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Inefficient algorithmic complexity (CWE-407)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Also known as
GHSA-474x-hrwr-fgx4
Sources
OSV.dev and GitHub

Description

With the non-default stopNodes option, a stop node's body with many "" 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.

CWE-407 — Inefficient Algorithmic Complexity

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).

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
fast-xml-parsernpm · osv:npm:fast-xml-parser
  • Every version before 5.12.0

About fast-xml-parser

Weekly downloads (npm)
118,514,898npm, 24 Nov 2026

This is the only vulnerability in fast-xml-parser in our list.

References