All vulnerabilities

npm

CVE-2026-129319

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

Severity
High 8.2
Published
14 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.0.5
Exploit chance
0.3% in the next 30 daysHigher than 16% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper input validation (CWE-20)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
create-ecdhnpm · osv:npm:create-ecdh
  • Every version before 4.0.5

About create-ecdh

Weekly downloads (npm)
13,794,453npm, 23 Nov 2026

This is the only vulnerability in create-ecdh in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129319