{"id":"CVE-2026-118781","published":"2026-10-29T18:49:28Z","modified":"2026-10-30T16:09:30Z","title":"Forge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of…","vendor":"digitalbazaar","product":"forge","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.9,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00413,"percentile":0.36312,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-h6cr-wjv9-3cpp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/digitalbazaar/forge/commit/e96c47b7f006dec66fb7bb1934e7375498b04a72","tags":["x_refsource_MISC"]},{"url":"https://github.com/digitalbazaar/forge/releases/tag/v1.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":7.26},{"name":"CVSS severity","points":2.03}]},"vendorSlug":"digitalbazaar","affectedVersions":[{"vendor":"digitalbazaar","product":"forge","versions":["< 1.4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-30T15:20:38.496495Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-forge","vulnerableRanges":["<1.4.1"],"patched":["1.4.1"],"from":["GHSA-h6cr-wjv9-3cpp"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-113339","exploited":false,"provenance":"source"}}