Vulnerability
CVE-2026-118781
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.
46 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
AZL-112487
CVE-2026-118781 affecting package python-tensorboard 2.16.2-6
- CGA-2fwc-m24w-8357
- CGA-2h59-57xp-4482
- CGA-2pxq-cx82-92c3
- CGA-2rq7-fjfh-vpqq
- CGA-3h6m-j5v2-6fr6
- CGA-3hj9-8c7g-q6vf
- CGA-68p3-h44r-54p3
- CGA-76gv-5rjf-xjmm
- CGA-7876-3v46-87f6
- CGA-8454-vrgr-w3q5
- CGA-86v6-66xq-r6mr
- CGA-8gcm-w29p-r8vv
- CGA-crrc-9qch-v4qq
- CGA-cxpg-pc46-7mmv
- CGA-f8fx-3m7m-488q
- CGA-fx48-r64m-qqp2
- CGA-gf9c-7rmw-qh74
- CGA-gmq4-4583-83wh
- CGA-hh24-qcc8-xhjc
- CGA-hm9h-x4c9-765v
- CGA-jjc4-x5x4-4g45
- CGA-jw7w-fwm7-jjpp
- CGA-mr32-6qcc-x96h
- CGA-mrw5-3fgj-v375
- CGA-phx6-5p78-5wgq
- CGA-pmqx-xc6r-rj4c
- CGA-pmr5-wrq6-cq97
- CGA-q2j3-f6hr-8f3v
- CGA-q74f-852v-5f23
- CGA-qh9w-64vj-wfj7
- CGA-qjmf-5gv9-ffvq
- CGA-qpjp-v47j-rv67
- CGA-r2jp-rrxv-rc4p
- CGA-rvfr-f9fg-v5cg
- CGA-v3gq-v5j5-phj3
- CGA-vm35-4pjv-hmpg
- CGA-w563-g3xv-v9fp
- CGA-w57f-w6f9-64qp
- CGA-w8vg-p2g3-5hw4
- CGA-wg3q-2p8w-76vc
- CGA-wxmg-p97v-cfcr
-
GHSA-h6cr-wjv9-3cpp
Forge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)
-
RHVEX-CVE-2026-118781
node-forge: node-forge: Denial of Service via infinite loop on negative input
-
SUSEVEX-CVE-2026-118781
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…
-
UBUNTU-CVE-2026-118781
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…