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

 

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

Published: November 6, 2026 / Updated: November 11, 2026


Vulnerability identifier: #VU159777
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-125333
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to deny service to applications using node-forge's forge.http client.

The vulnerability exists due to quadratic regular expression processing when forge.http trims response headers and cookies containing long whitespace runs followed by a non-whitespace character. An unauthenticated remote attacker can supply a large response header from a controlled server or on-path position to block the client's event loop for minutes, provided the application uses forge.http with an application-supplied socket pool.


Affected software

node-forge

How to mitigate CVE-2026-125333

Install security update from vendor's website.

node-forge - update to 1.4.3

External References

Related Security Bulletins