Infinite loop in node-forge - CVE-2026-33891

 

Infinite loop in node-forge - CVE-2026-33891

Published: November 6, 2026


Vulnerability identifier: #VU159762
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-33891
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to render an application using node-forge unresponsive indefinitely.

The vulnerability exists due to missing zero-value validation in node-forge's BigInteger.modInverse() function, which enters an infinite loop when called on zero. An unauthenticated remote attacker can submit a crafted input to an application that passes untrusted values to this function, blocking the Node.js event loop and consuming CPU without user interaction.


Affected software

node-forge

How to mitigate CVE-2026-33891

Install security update from vendor's website.

node-forge - update to 1.4.0

External References

Related Security Bulletins