CVE-2026-140099
CVE-2026-140099 · Forge: RSA multi-prime private keys are read as two-prime keys, and signatures leak a factor of the modulus
CVSS 3.7 · Low · EPSS 0.4% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- forgeNo fix published
- node-forge npmUpdate to 1.4.4
- node-node-forge Ubuntu 20.04 LTSNo fix published
- node-node-forge Ubuntu 22.04 LTSNo fix published
Check the installed version:
npm ls node-forgedpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-node-forge"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.4, pki.privateKeyFromPem() and pki.privateKeyFromAsn1() ignore the RSAPrivateKey version and otherPrimeInfos fields and interpret a multi-prime RSA private key as a two-prime key. Signing then uses CRT values for only the first two primes, producing an invalid signature from which an observer can recover a factor of the modulus and reduce the effective strength of the key; two-prime keys are not affected. This issue is fixed in 1.4.4.
- Published
- Updated
Affected products and versions
forge
- Versions
- < 1.4.4: Affected
No fix published
node-forge npm
- Affected ranges
- SEMVER: < 1.4.4
Update to 1.4.4
node-node-forge Ubuntu 20.04 LTS
- Versions
- 0.8.5~dfsg-2
- 0.9.1~dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-node-forge Ubuntu 22.04 LTS
- Versions
- 0.10.0~dfsg-3
- 1.2.1~dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-w73w-hhm4-q25p
- https://github.com/digitalbazaar/forge/issues/1143
- https://github.com/digitalbazaar/forge/commit/8d1a7bc8ad514e70f85bf5cbe4c60cd52916fdef
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.4
- https://nvd.nist.gov/vuln/detail/CVE-2026-140099