CVE-2026-129319 create-ecdh: computeSecret does not validate that the peer public key is on the curve (invalid-curve attack)

High 8.2 Published Updated

Attackers submitting public keys to parties using create-ecdh can recover private keys via invalid-curve or small-subgroup attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
Yes
Fix
Available

What is CVE-2026-129319?

CVE-2026-129319 is a high-severity weak cryptography vulnerability in browserify createECDH, published on 14 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

create-ecdh is a browserifiable implementation of Node.js crypto.createECDH. In versions 4.0.4 and below, the JavaScript implementation (browser.js, used by browser bundlers and on Node.js versions without a working native crypto.createECDH) did not validate peer public keys in ECDH.prototype.computeSecret or ECDH.prototype.setPublicKey. The peer point was multiplied by the local private key without checking that it was on the configured curve or in its prime-order subgroup. An attacker who can submit public keys to a party that reuses a static private key can perform an invalid-curve or small-subgroup attack and recover the private key modulo small factors, eventually recovering the full key via the Chinese Remainder Theorem. For the ed25519 and curve25519 curves, low-order points were also accepted, which could force a predictable shared secret. On modern Node.js, create-ecdh re-exports the native implementation, which is not affected. This issue is fixed in version 4.0.5.

Weakness: CWE-20

Which versions are affected by CVE-2026-129319?

An affected version is only exploitable if your software calls ECDH.prototype.computeSecret or ECDH.prototype.setPublicKey. Many projects that include it are not exposed.

How do I fix CVE-2026-129319?

Upgrade to a fixed version.

Upgrade, and use current algorithms from a well-maintained library. More about Weak cryptography.

Is CVE-2026-129319 being exploited?

There is no known exploitation of CVE-2026-129319 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-129319, GHSA-32q7-f779-hw5r, UBUNTU-CVE-2026-129319.

Is CVE-2026-129319 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free