Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
3.7

CVE-2026-140099: node-forge RSA multi‑prime keys expose secret factor

CVE-2026-140099 · published 2 days ago
Summary

The JavaScript library node-forge versions before 1.4.4 mishandles RSA keys that use more than two prime numbers, treating them as ordinary two‑prime keys. When such a key is used to create a digital signature, the result can reveal part of the private key, making the encryption weaker. Upgrade to version 1.4.4 or later to correct the handling of multi‑prime RSA keys.

What to do
  • Update node-forge to version 1.4.4.
Affected software
Ecosystem VendorProductAffected versions
Ubuntu:20.04:LTS canonical node-node-forge All versions
– digitalbazaar forge < 1.4.4
npm – node-forge <= 1.4.3
Fix: upgrade to 1.4.4
Original advisory text
Forge: RSA multi-prime private keys are read as two-prime keys, and signatures leak a factor of the modulus
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
3.7 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-20Improper Input Validation
CWE-325Missing Cryptographic Step
Timeline
Published30 Nov 2026
Updated2 Dec 2026
First seen30 Nov 2026
Track software like this
Free during beta