Inefficient regular expression complexity in node-forge - CVE-2026-118779
Published: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to cause denial of service in applications that pass untrusted PEM input to node-forge.
The vulnerability exists due to excessive regular expression backtracking in pem.decode() when processing messages without matching END lines or long encapsulated headers. An unauthenticated remote attacker can submit crafted input of a few tens of kilobytes to block the Node.js event loop for seconds to minutes, preventing the process from serving other requests.