Inefficient regular expression complexity in node-forge - CVE-2026-118779

 

Inefficient regular expression complexity in node-forge - CVE-2026-118779

Published: November 6, 2026


Vulnerability identifier: #VU159775
CSH Severity: Medium
CVSS v4: 8.7 [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-ID: CVE-2026-118779
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

node-forge

How to mitigate CVE-2026-118779

Install security update from vendor's website.

node-forge - update to 1.4.1

External References

Related Security Bulletins