CVE-2026-33891Infinite Loop in Forge

Severity
7.5HIGHNVD
EPSS
0.1%
top 83.78%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMar 27

Description

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.4.0, a Denial of Service (DoS) vulnerability exists in the node-forge library due to an infinite loop in the BigInteger.modInverse() function (inherited from the bundled jsbn library). When modInverse() is called with a zero value as input, the internal Extended Euclidean Algorithm enters an unreachable exit condition, causing the process to hang indefinitely and consume 100%

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages2 packages

CVEListV5digitalbazaar/forge< 1.4.0

Patches

🔴Vulnerability Details

3
OSV
CVE-2026-33891: Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript2026-03-27
OSV
Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input2026-03-26
GHSA
Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input2026-03-26

📋Vendor Advisories

1
Red Hat
node-forge: node-forge: Denial of Service via infinite loop in BigInteger.modInverse()2026-03-27

🕵️Threat Intelligence

1
Wiz
CVE-2026-33891 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

4
Bugzilla
CVE-2026-33891 fbthrift: node-forge: Denial of Service via infinite loop in BigInteger.modInverse() [fedora-all]2026-03-27
Bugzilla
CVE-2026-33891 cachelib: node-forge: Denial of Service via infinite loop in BigInteger.modInverse() [fedora-all]2026-03-27
Bugzilla
CVE-2026-33891 fbthrift: node-forge: Denial of Service via infinite loop in BigInteger.modInverse() [epel-all]2026-03-27
Bugzilla
CVE-2026-33891 cachelib: node-forge: Denial of Service via infinite loop in BigInteger.modInverse() [epel-all]2026-03-27
CVE-2026-33891 — Infinite Loop in Digitalbazaar Forge | cvebase