# CVE-2026-118781: Forge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)

- Severity: Low 2.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T18:49:28.661Z
- Modified: 2026-11-10T19:33:07.680Z
- Also known as: GHSA-h6cr-wjv9-3cpp
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- digitalbazaar forge: < 1.4.1; before 1.4.1
- node-forge (npm): before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-h6cr-wjv9-3cpp> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/digitalbazaar/forge/commit/e96c47b7f006dec66fb7bb1934e7375498b04a72> (patch, web)
- <https://github.com/digitalbazaar/forge/releases/tag/v1.4.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-118781> (advisory)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2026-118781](https://www.cve.org/CVERecord?id=CVE-2026-118781), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-h6cr-wjv9-3cpp](https://github.com/advisories/GHSA-h6cr-wjv9-3cpp), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-118781](https://nvd.nist.gov/vuln/detail/CVE-2026-118781), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-118781 · Whole record: https://cve.day/CVE-2026-118781.json · Rebuilt by cve.day 2026-11-25T22:59:47.823Z
