{"id":"CVE-2026-83606","published":"2026-09-01T14:21:27Z","modified":"2026-09-01T14:57:43Z","title":"xmldom PI grammar regex ReDoS: quadratic backtracking on unterminated processing instructions","vendor":"xmldom","product":"xmldom","tier":"tail","description":{"text":"xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.0-beta.9 until 0.9.11, the processing-instruction production in lib/grammar.js lets the greedy S+ separator and lazy Char*? data group repeatedly repartition a long whitespace tail when the required closing ?> is absent. Both parsePI and parseProcessingInstruction apply the expression to the entire remaining source, causing quadratic backtracking during DOMParser.parseFromString() under default options and allowing a small unauthenticated XML input to stall the Node.js event loop. This issue is fixed in @xmldom/xmldom version 0.9.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.45335,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-g53g-w8rj-fmg7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xmldom/xmldom/pull/1039","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/commit/73df6b8bdbd86f904b9e8c3ab9c49aa54ef2802e","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.9.11","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.07},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"xmldom","affectedVersions":[{"vendor":"xmldom","product":"xmldom","versions":[">= 0.9.0-beta.9, < 0.9.11"]},{"vendor":"@xmldom","product":"xmldom","versions":[">= 0.9.0-beta.9, < 0.9.11"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-01T14:57:15.918491Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@xmldom/xmldom","vulnerableRanges":[">=0.9.0-beta.9, <0.9.11"],"patched":["0.9.11"],"from":["GHSA-g53g-w8rj-fmg7"],"provenance":"source"}],"summary":{"text":"xmldom, a pure JavaScript DOMParser and XMLSerializer module, contains a regular expression in its processing-instruction grammar (lib/grammar.js) for versions from 0.9.0-beta.9 up to 0.9.11 that backtracks quadratically when a processing instruction is unterminated. An attacker can exploit this without authentication, network-reachable and with no user interaction, by sending a small XML input with a long whitespace tail and no closing ?> to an application that calls DOMParser.parseFromString() with default options, stalling the Node.js event loop.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:58Z"},"euvd":{"id":"EUVD-2026-69216","exploited":false,"provenance":"source"}}