{"id":"GHSA-474x-hrwr-fgx4","revision":null,"records":[{"revision":"6a074fbb4af54e26934002765f281fbd","observedAt":"2026-11-12T19:16:18.743+00:00","statement":{"source":"cve-program","id":"CVE-2026-126066","aliases":[],"title":"fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags","description":"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.","state":0,"publishedAt":"2026-11-10T20:23:16.019+00:00","modifiedAt":"2026-11-12T18:01:44.471+00:00","affected":[{"ecosystem":"Vendor product","name":"fast-xml-parser","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"NaturalIntelligence\",\n                    \"product\": \"fast-xml-parser\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 5.12.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"severity":"LOW"}],"references":["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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-126066","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-126066","identifiers":["CVE-2026-126066"]},"retained":false,"historicalAffected":[]},{"revision":"01d94827e403460a9c76e4133bc445ed","observedAt":"2026-11-16T22:29:28.52+00:00","statement":{"source":"euvd","id":"EUVD-2026-122845","aliases":["CVE-2026-126066","GHSA-474x-hrwr-fgx4"],"title":"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 …","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"severity":null}],"references":["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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-122845","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 10, 2026, 8:23:16 PM","dateUpdated":"Nov 12, 2026, 6:01:44 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-122845","identifiers":["EUVD-2026-122845","CVE-2026-126066","GHSA-474x-hrwr-fgx4"]},"retained":false,"historicalAffected":[]},{"revision":"78a8d3c6632241f497b372315a7d8104","observedAt":"2026-11-12T22:18:32.671+00:00","statement":{"source":"nvd","id":"CVE-2026-126066","aliases":[],"title":"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 …","description":"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.","state":0,"publishedAt":"2026-11-10T21:19:24.487+00:00","modifiedAt":"2026-11-12T18:17:23.86+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"severity":"LOW"}],"references":["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/security/advisories/GHSA-474x-hrwr-fgx4"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-126066","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-407"],"productCriteria":[],"sourceDates":{"published":"2026-11-10T21:19:24.487","lastModified":"2026-11-12T18:17:23.860"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-126066","identifiers":["CVE-2026-126066"]},"retained":false,"historicalAffected":[]},{"revision":"1f7b0007c74d48429656d193dae3ae92","observedAt":"2026-11-10T21:21:46.124+00:00","statement":{"source":"osv","id":"GHSA-474x-hrwr-fgx4","aliases":["CVE-2026-126066"],"title":"fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags","description":"### Summary\n\nWith 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.\n\n### Details\n\n**CWE-407** — Inefficient Algorithmic Complexity\n\n**Code**\n- `OrderedObjParser.js:520` — `parseXml()` calls `readStopNodeData()` after a matching stop node opens\n- `OrderedObjParser.js:810` — calls `readTagExp()` for every non-special `<`\n- `OrderedObjParser.js:688-722` — `tagExpWithClosingIndex()` scans to end-of-input and returns `undefined` when no `>` exists\n- `OrderedObjParser.js:812-818` — on failure, `i` isn't advanced, so the next `<` repeats the same full scan\n- `OrderedObjParser.js:423` — the main parse loop throws immediately on the same failure; only the stop-node path retries\n\n**Root cause:** a failed closing-`>` lookahead is neither cached nor bounded — `n` copies of `<a ` with no later `>` means `n` scans over the remaining input, O(n²) work, before it finally throws.\n\n**Fix**\n1. Throw immediately in `readStopNodeData()` when `readTagExp()` returns `undefined`\n2. Or break the loop on the first failed scan\n3. Or find the next `>` once and reuse/bound that result\n4. Add a test asserting near-linear scaling when payload size doubles\n\n### Proof of concept\n\nNot benchmarked — static-analysis finding, confidence 0.5.\n\nTo confirm: configure `stopNodes` matching a root element. Build input as `'<stop>' + '<a '.repeat(n)`. Time `parse()` until it throws `Unexpected 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, or `stopNodes` unset.\n\n### Impact\n\nCPU-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).","state":0,"publishedAt":"2026-11-10T21:09:44+00:00","modifiedAt":"2026-11-10T21:15:03.0746498+00:00","affected":[{"ecosystem":"npm","name":"fast-xml-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.12.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["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","https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.12.0"],"sourceUrl":"https://github.com/advisories/GHSA-474x-hrwr-fgx4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-474x-hrwr-fgx4","identifiers":["GHSA-474x-hrwr-fgx4","CVE-2026-126066"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-17T05:29:43.0124777+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-17T05:29:43.0124777+00:00","lastSuccessAt":"2026-11-17T05:29:43.5521323+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:29:43.5521335+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-30c3da459c38698a15d626d89e52e03e55e19fc45dae0e6d8d723cbf35472cf4-9c90debbc1f8950b3c0f1d5a421574a28f1b0b2fa45e289f49fdf2a8e9fb3901","complete":true,"records":426272,"lastAttemptAt":"2026-11-17T05:26:09.4993977+00:00","lastSuccessAt":"2026-11-17T05:26:09.3579252+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:26:09.4993977+00:00","snapshotPublishedAt":"2026-11-17T05:19:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-86fdeb8b03f14eafa75c0af5223146b8","complete":false,"records":13836,"lastAttemptAt":"2026-11-17T05:38:12.3318417+00:00","lastSuccessAt":"2026-11-17T05:38:12.325+00:00","error":"71 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-17T05:38:12.325+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13633,"expectedIdentifiers":13890,"failedIdentifiers":71},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-17T05:29:43.0124777+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-17T05:29:43.0124777+00:00","lastSuccessAt":"2026-11-17T05:29:43.5528938+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:29:43.552894+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8fe42df9ddaa47a5bde948a2904896ae","complete":true,"records":13849,"lastAttemptAt":"2026-11-17T05:29:44.1294724+00:00","lastSuccessAt":"2026-11-17T03:28:01.122+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:28:01.122+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13890,"expectedIdentifiers":13890,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-db3ae05f3e19425298b475ceb81e33f22d67df93dfef77c2b0200c8b05fd85ae","complete":true,"records":9958,"lastAttemptAt":"2026-11-17T05:29:42.9612591+00:00","lastSuccessAt":"2026-11-16T23:31:31.5526753+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:29:42.9612591+00:00","snapshotPublishedAt":"2026-11-16T22:48:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-17T05:26:09.8083264+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:26:09.8083264+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-17T05:29:42.9762315+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:29:42.9762315+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-4595284f246a19ff96d48d7bf03711d7e7b12108e02f248fcd0079c1c749af1c","complete":true,"records":232578,"lastAttemptAt":"2026-11-17T05:29:42.8364573+00:00","lastSuccessAt":"2026-11-17T05:29:41.6968952+00:00","error":null,"lastVerifiedAt":"2026-11-17T05:29:42.8364573+00:00","snapshotPublishedAt":"2026-11-17T05:18:19+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}