Description
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.
Published: 2026-09-01
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a Regular Expression Denial of Service (ReDoS) flaw in the XML parsing logic of xmldom. A gor­ey S+ separator and lazy Char*? pattern can lead to quadratic back‑tracking when the closing ">" of a processing instruction is missing. The resulting CPU exhaustion stalls the Node.js event loop, disrupting service availability but not compromising confidentiality or integrity. Because the flaw is triggered by XML input, an attacker could cause prolonged resource consumption by sending a crafted document to any module that uses DOMParser.parseFromString without authentication.

Affected Systems

The issue affects the xmldom library for the ranges 0.9.0-beta.9 through 0.9.11 inclusive. The vendor package is @xmldom/xmldom, version 0.9.11, which contains the fix.

Risk and Exploitability

With a CVSS score of 8.7 the flaw is high‑severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Given that the trigger is any XML string fed to the parser, the likely attack vector is the injection of a malicious XML payload that is parsed locally, leading to a denial of service via event‑loop blockage. The risk is elevated for applications that process untrusted XML from external sources.

Generated by OpenCVE AI on September 1, 2026 at 16:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the xmldom library to version 0.9.11 or later to eliminate the ReDoS path.
  • Ensure that any XML data processed by xmldom originates from trusted sources; if possible, reject or filter untrusted XML before it reaches the parser.
  • Monitor Node.js process CPU usage and investigate sustained high‑CPU events as a potential indicator of an attempted ReDoS attack.

Generated by OpenCVE AI on September 1, 2026 at 16:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g53g-w8rj-fmg7 xmldom PI grammar regex ReDoS: quadratic backtracking on unterminated processing instructions
History

Wed, 02 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Xmldom
Xmldom xmldom
Vendors & Products Xmldom
Xmldom xmldom
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 01 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Description 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.
Title xmldom PI grammar regex ReDoS: quadratic backtracking on unterminated processing instructions
Weaknesses CWE-1333
CWE-400
References
Metrics cvssV4_0

{'score': 8.7, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-01T14:57:43.875Z

Reserved: 2026-08-31T20:36:25.743Z

Link: CVE-2026-83606

cve-icon Vulnrichment

Updated: 2026-09-01T14:57:33.295Z

cve-icon NVD

Status : Deferred

Published: 2026-09-01T15:17:38.490

Modified: 2026-09-08T21:11:31.703

Link: CVE-2026-83606

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-01T14:21:27Z

Links: CVE-2026-83606 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T16:30:17Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption