CVE-2026-118781
Published:October 29, 2026
Updated:October 31, 2026
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used BigInteger.prototype.modInverse(), bnModInverse(), lib/jsbn.js, RSA public exponent e to process the relevant input or security decision. node-forge's bundled jsbn implementation entered an infinite loop when BigInteger.prototype.modInverse() received a negative value or modulus. An attacker who could control the RSA public exponent passed to key generation, or a direct modInverse() operand, could block the Node.js event loop at full CPU. Parsed DER, PEM, JWK, PKCS#12, X.509, and TLS values are unsigned and cannot trigger this issue. This issue is fixed in version 1.4.1.
Affected Packages
forge (CDN_JS):
Affected version(s) >=0.7.0 <1.4.1 || >=1.0.0 <1.4.1Fix Suggestion:
Update to version 1.4.1https://github.com/digitalbazaar/forge.git (GITHUB):
Affected version(s) >=0.1.2 <v1.4.1 || >=v1.0.0 <v1.4.1Fix Suggestion:
Update to version v1.4.1node-forge (NPM):
Affected version(s) >=0.1.2 <1.4.1 || >=1.0.0 <1.4.1Fix Suggestion:
Update to version 1.4.1node-forge (NPM):
Affected version(s) >=0.1.2 <1.4.1Fix Suggestion:
Update to version 1.4.1Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.1
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
2.9
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Loop with Unreachable Exit Condition
EPSS
Base Score:
0.12