CVE-2026-33891
7.5Digital Bazaar · node-forge
A denial of service vulnerability in node-forge prior to 1.4.0 allows unauthenticated attackers to cause an infinite loop and 100% CPU consumption via a specifically crafted BigInteger input.
Executive summary
A critical denial of service vulnerability in the node-forge library allows unauthenticated remote attackers to exhaust system resources by triggering an infinite loop.
Vulnerability
The vulnerability exists in the BigInteger.modInverse() function, which fails to handle zero values correctly. An unauthenticated attacker can trigger this flaw, causing the process to enter an infinite loop that results in total CPU exhaustion.
Business impact
The exploitation of this vulnerability leads to a complete denial of service for any application relying on the node-forge library for TLS operations. Given the CVSS score of 7.5, this high severity flaw poses a significant risk to service availability, potentially causing system crashes or unresponsiveness that disrupts critical business workflows.
Remediation
Immediate Action: Update the node-forge dependency to version 1.4.0 or later immediately to incorporate the fix for the BigInteger.modInverse() function.
Proactive Monitoring: Monitor server CPU utilization metrics for sudden, sustained spikes to 100% that correlate with incoming network traffic.
Compensating Controls: Implement rate limiting and request validation at the Web Application Firewall or load balancer level to drop malformed inputs before they reach the library.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Organizations utilizing the node-forge library must prioritize upgrading to version 1.4.0 to eliminate this risk. The ability for an unauthenticated attacker to induce a persistent denial of service makes this a high priority remediation task for all development and security teams.