p PatchFirst

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.

Check the installed version:

npm ls node-forge
dpkg-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 | sh
Check your server for free →

Channels 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

Stack: system · node

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

Check your server →