create-ecdhのcomputeSecretで公開鍵の検証が不足し秘密鍵が漏えいする脆弱性
Summary
create-ecdhの4.0.4以前では、JavaScript実装(browser.js)が公開鍵の検証を行わず、攻撃者が細工した公開鍵を使って秘密鍵の一部を復元される脆弱性があります。Node.jsの組み込み実装を使う環境には影響しません。4.0.5で修正されているため、4.0.5以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
create-ecdhの4.0.4以前では、JavaScript実装(browser.js)が公開鍵の検証を行わず、攻撃者が細工した公開鍵を使って秘密鍵の一部を復元される脆弱性があります。Node.jsの組み込み実装を使う環境には影響しません。4.0.5で修正されているため、4.0.5以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| browserifycreateECDH |
< 4.0.5→ 4.0.5 |
4.0.5 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-129319 node-create-ecdh Fix available
- Ubuntu UBUNTU-CVE-2026-129319 node-create-ecdh No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web npmjs.com