CVE-2026-129319 create-ecdh: computeSecret does not validate that the peer public key is on the curve (invalid-curve attack)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-create-ecdh(Debian 12) | = 4.0.4-2; = 4.0.5-1; All versions | No fix listed | No fix yet |
| debian/node-create-ecdh(Debian 13) | = 4.0.4-2; = 4.0.5-1; All versions | No fix listed | No fix yet |
| ubuntu/node-create-ecdh(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-create-ecdh(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-create-ecdh(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-create-ecdh(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-create-ecdh(Debian 14) | < 4.0.5-1; = 4.0.4-2 | 4.0.5-1 | Fixed |
| npm create-ecdh(npm) | < 4.0.5 | 4.0.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm create-ecdh(npm) | < 4.0.5 | 4.0.5 |
| debian/node-create-ecdh(Debian:12) | All versions | No fix listed |
| debian/node-create-ecdh(Debian:14) | < 4.0.5-1 | 4.0.5-1 |
| debian/node-create-ecdh(Debian:13) | All versions | No fix listed |
| ubuntu/node-create-ecdh(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-create-ecdh(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-create-ecdh(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-create-ecdh(Ubuntu:26.10) | All versions | No fix listed |
| debian/node-create-ecdh(Debian:12) | = 4.0.4-2 | No fix listed |
| debian/node-create-ecdh(Debian:12) | = 4.0.5-1 | No fix listed |
| debian/node-create-ecdh(Debian:13) | = 4.0.4-2 | No fix listed |
| debian/node-create-ecdh(Debian:13) | = 4.0.5-1 | No fix listed |
| debian/node-create-ecdh(Debian:14) | = 4.0.4-2 | No fix listed |
References
- github.com patch
- github.com vendor-advisory
- Debian Security Tracker CVE-2026-129319 vendor-advisory
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-125887 third-party-advisory