Inefficient regular expression complexity in xmldom - #VU142547
Published: August 14, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to inefficient regular expression complexity in the processing-instruction grammar regex in lib/grammar.js when parsing an unterminated processing instruction. A remote attacker can send a specially crafted XML document to cause a denial of service.
The issue is reachable through DOMParser.parseFromString under default options and can stall the Node.js event loop during parsing.