CVE-2026-118781Digitalbazaar Forge infinite loop
CVSS score
5.3
Medium
CVSS 3.1 from NVD
Exploit probability (EPSS)
0.41%
0.41% chance of exploitation in the next 30 days, higher than 36.3% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running digitalbazaar Forge and compare its version with the affected versions.
Update to a fixed version
- Update Forge to 1.4.1 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Affected products
| Affected products | Versions |
|---|---|
| digitalbazaar Forge | < 1.4.1 |
Weakness
- CWE-835 infinite loop
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-118781 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-118781?
CVE-2026-118781 has a CVSS 3.1 base score of 5.3 (medium).
Which versions are affected?
Digitalbazaar Forge (< 1.4.1)
Is there a patch for CVE-2026-118781?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/digitalbazaar/forge/commit/e96c47b7f006dec66fb7bb1934e7375498b04a72(Patch)
- github.com/digitalbazaar/forge/security/advisories/GHSA-h6cr-wjv9-3cpp(Exploit, Mitigation, Vendor Advisory)
- github.com/digitalbazaar/forge/releases/tag/v1.4.1(Release Notes)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.