Repository navigation
chore(deps): update dependency fast-xml-parser to v5.12.1 [security] - #87
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
SafeDep Report SummaryPackage Details
This report is generated by SafeDep GitHub App |
renovate
Bot
force-pushed
the
renovate/npm-fast-xml-parser-vulnerability
branch
26 times, most recently
from
November 25, 2026 03:07
9fda45a to
ab853d0
Compare
renovate
Bot
force-pushed
the
renovate/npm-fast-xml-parser-vulnerability
branch
from
December 4, 2026 18:06
ab853d0 to
118c021
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




This PR contains the following updates:
5.11.2→5.12.1fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags
CVE-2026-126066 / GHSA-474x-hrwr-fgx4
More information
Details
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()callsreadStopNodeData()after a matching stop node opensOrderedObjParser.js:810— callsreadTagExp()for every non-special<OrderedObjParser.js:688-722—tagExpWithClosingIndex()scans to end-of-input and returnsundefinedwhen no>existsOrderedObjParser.js:812-818— on failure,iisn't advanced, so the next<repeats the same full scanOrderedObjParser.js:423— the main parse loop throws immediately on the same failure; only the stop-node path retriesRoot cause: a failed closing-
>lookahead is neither cached nor bounded —ncopies of<awith no later>meansnscans over the remaining input, O(n²) work, before it finally throws.Fix
readStopNodeData()whenreadTagExp()returnsundefined>once and reuse/bound that resultProof of concept
Not benchmarked — static-analysis finding, confidence 0.5.
To confirm: configure
stopNodesmatching a root element. Build input as'<stop>' + '<a '.repeat(n). Timeparse()until it throwsUnexpected 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, orstopNodesunset.Impact
CPU-exhaustion DoS in Node.js services parsing untrusted XML with
stopNodesenabled. 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).Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options
CVE-2026-141469 / GHSA-7cfw-w2rf-f3jc
More information
Details
Summary
Reported by Nikhil Agrawal, Mettle Labs; reproduced only against a clean local install of
fast-xml-parser@5.11.2on their own machine.scanAttributeTokensinsrc/validator.jsrescans a leading-whitespace run on every loop iteration when it hits a stray=, giving Theta(n^2) time. A few-hundred-KB input stalls the event loop for tens of seconds. Reachable on the default path via bothXMLValidator.validate(xml)andnew XMLParser().parse(xml, true), no non-default options.Details
src/validator.js,scanAttributeTokens— on a=with no attribute name before it,iis reset to one past the token start, not past the=, so the leading-whitespace scan repeats:For an attribute string of the shape
<whitespace run> =, each outer iteration advancestokenStartby one but re-walks the entire remaining whitespace run up to the=, so total work is quadratic in the run length. It is reached whenever an element's attribute section is scanned, which bothXMLValidator.validate()andXMLParser.parse(xml, true)(validation enabled) do on the default path. (This scanner is a recent regex -> hand-scanner rewrite; the quadratic rescan is in the rewrite.)Proof of concept
A few-hundred-KB document hangs the validator. Runnable against a clean
npm i fast-xml-parser@5.11.2(Node >= 18):
Measured on
fast-xml-parser@5.11.2(unpatched): n=20k -> 461 ms, 40k -> 1755 ms, 80k -> 7108 ms, 160k -> 29847 ms (~4x per 2x length = quadratic); 200k -> ~45 s. A ~200 KB request stalls the event loop ~45 s.Impact
A single few-hundred-KB document sent to any service that validates or parses (with validation) attacker-controlled XML via fast xml-parser stalls the Node event loop for tens of seconds — a remote denial of service on the most-installed XML parser for Node, on the default code path.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
NaturalIntelligence/fast-xml-parser (fast-xml-parser)
v5.12.1Compare Source
What's Changed
New Contributors
Full Changelog: NaturalIntelligence/fast-xml-parser@v5.12.0...v5.12.1
v5.12.0Compare Source
What's Changed
New Contributors
Full Changelog: NaturalIntelligence/fast-xml-parser@v5.11.2...v5.12.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.