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

 

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

Published: November 6, 2026


Vulnerability identifier: #VU159767
CSH Severity: Low
CVSS v4: 2 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-118781
CWE-ID: CWE-835
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unprivileged local attacker to cause denial of service by indefinitely blocking the Node.js event loop.

The vulnerability exists due to an unreachable loop exit condition in node-forge's bundled jsbn modular inversion routine when the value or modulus is negative. An unprivileged local attacker can supply a negative RSA public exponent or modular inversion operand to applications accepting untrusted inputs for these operations, causing sustained CPU consumption.


Affected software

node-forge

How to mitigate CVE-2026-118781

Install security update from vendor's website.

node-forge - update to 1.4.1

External References

Related Security Bulletins