Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted off-curve/low-order point to static-key ECDH endpoint
-
DeliverycomputeSecret multiplies point without validation
-
ExploitObserve shared secret leaking key residue mod small factor
-
ExecutionRepeat across many invalid-curve points
-
ImpactReconstruct full private key via CRT
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires all of the following: (1) the vulnerable code path - create-ecdh's browser.js, i.e. bundling via the 'browser' field (browserify, webpack, etc.) OR running on a Node.js version whose native crypto.createECDH is missing or does not compute the public key in setPrivateKey; (2) the victim reuses a static/long-term ECDH private key across multiple computeSecret (or setPublicKey) operations - ephemeral per-session keys do not permit full CRT key recovery; and (3) the attacker can submit arbitrary peer public keys to that victim. LIMITING FACTORS: modern Node.js re-exports the native implementation and is entirely unaffected; the attack needs many queries against the same reused key to assemble residues; and for the short-Weierstrass curves it relies on off-curve/invalid-curve points, while the ed25519 (cofactor 8) and curve25519 aliases additionally accept low-order/outside-subgroup points (e.g. (0,-1) or x=0, forcing a predictable/all-zero shared secret). |
| Impact | The CVSS 4.0 base score of 8.2 (High) reflects a network-reachable (AV:N), low-complexity (AC:L), unauthenticated (PR:N) flaw with high confidentiality impact (VC:H) - full private-key recovery. Critically, the vector includes AT:P (Attack Requirements: Present), and the description confirms the concrete requirement: exploitation only works against a party that reuses a static/long-term ECDH private key, and only on the vulnerable browser.js code path (browser bundlers, or legacy Node.js lacking working native crypto.createECDH). Modern Node.js re-exports the native implementation and is NOT affected, which substantially narrows the real-world exposure despite the network vector. No EPSS score was supplied in the input, and the CVE is not listed in CISA KEV, so there is no evidence of active or widespread exploitation - status is 'no public exploit identified at time of analysis' for a weaponized key-recovery tool, though the GHSA advisory does contain demonstration PoC code proving the parity/bit leak. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a genuinely serious cryptographic flaw whose practical exploitation is gated by specific deployment conditions (static-key reuse plus the browser/legacy path) rather than an actively-exploited internet-wide threat. Net: a real, patch-this-week priority for anyone bundling create-ecdh into browser code with reused ECDH keys, but not an emergency for the majority of modern-Node consumers who hit the unaffected native path. |
| Exploit ScenarioDerived | A web application (or legacy-Node service) uses create-ecdh via a browser bundle to perform ECDH with a long-lived, reused server private key, and lets a remote peer supply the public key. The attacker repeatedly submits crafted low-order points on invalid/twist curves (or small-subgroup points); because browser.js never validates the peer point is on-curve or in the prime-order subgroup, each computeSecret call leaks the private key modulo small factors, which the attacker combines via the Chinese Remainder Theorem to recover the full static private key. The GHSA advisory includes working demonstration PoC code that confirms the off-curve point is accepted and a parity bit leaks from a single query. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 14, 2026
Private-key recovery in create-ecdh 4.0.4 and earlier affects the browser.js fallback used by browser bundlers and by Node.js builds without a working native crypto.createECDH: an attacker who can submit peer public keys can exploit missing point validation to learn residues of a reused static ECDH private key, and low-order ed25519/curve25519 points can force predictable shared secrets. Modern Node.js re-exports the native implementation and is not affected. The advisory includes a public proof-of-concept reproduction; it is not verified as working exploit code, active exploitation is not confirmed, and the issue is not in CISA KEV, while the vendor CVSS 4.0 score is 8.2 and an independent CVSS 3.1 assessment is AV:N/AC:H/PR:N/UI:N/C:H/I:N/A:N.
RemediationAI
Upgrade to create-ecdh 4.0.5, which validates peer public keys in computeSecret and setPublicKey and throws 'Public key is not valid for specified curve' for infinity, off-curve points, points outside the prime-order subgroup, and Montgomery x = 0; see the advisory at https://github.com/browserify/createECDH/security/advisories/GHSA-32q7-f779-hw5r and the patch commit at https://github.com/browserify/createECDH/commit/1cfaf332773237e5fea4b51a2ad3efab4c22bec1. If upgrading is not immediately possible, ensure that modern Node.js uses the native crypto.createECDH implementation rather than the browser field, and avoid static or reused ECDH private keys by generating ephemeral keys per session; this reduces CRT key-recovery exposure but does not by itself eliminate forced predictable secrets from low-order points. For code that must keep using browser.js, add peer-key validation with elliptic's KeyPair#validate() plus explicit rejection of Montgomery x = 0 before computeSecret and setPublicKey, including the ed25519 and curve25519 low-order cases; the trade-off is custom validation code that must be maintained to match Node's behavior. Restricting or authenticating inputs that supply peer public keys is a compensating control and not a substitute for the 4.0.5 fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
create-ecdh provides a browserifiable implementation of Node.js crypto.createECDH, and its browser.js code path uses the elliptic library rather than Node's native ECDH. In versions through 4.0.4, ECDH.prototype.computeSecret and ECDH.prototype.setPublicKey multiplied or imported a peer public point without validating that it was on the configured curve or in the prime-order subgroup, a CWE-20 improper-input-validation flaw. For short-Weierstrass curves this permits invalid-curve and small-subgroup attacks: an attacker submits crafted peer points, observes shared-secret outputs, recovers the private key modulo small factors, and combines the residues via the Chinese Remainder Theorem when the victim reuses a static private key. The ed25519 alias (cofactor 8) additionally accepted on-curve points outside the prime-order subgroup, and a curve25519 name passed to elliptic accepted the order-2 point x = 0, forcing an all-zero shared secret. The advisory notes that modern Node.js re-exports the native crypto.createECDH implementation and is unaffected; only browser.js, used by browser bundlers via the browser field or by Node.js versions whose native implementation is missing or does not compute the public key in setPrivateKey, is in scope. All published versions 1.0.0 through 4.0.4 are affected. The fix in 4.0.5 uses elliptic's full KeyPair#validate() checks for infinity, on-curve membership, and n * P = O, plus an explicit Montgomery x = 0 rejection, and derives the secret through the validated key path.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote unauthenticated peer-key submission (AV:N/PR:N/UI:N); AC:H because success requires a reused static key plus many invalid-curve queries and CRT; impact is private-key disclosure (C:H, I:N, A:N).
Primary rating from Vendor (harborist).
CVSS VectorVendor: harborist
DescriptionCVE.org
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.
Technical POC Analysis
CWE-20 (Improper Input Validation) in create-ecdh's browser.js.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in the widely used create-ecdh JavaScript library (versions 4.0.4 and earlier) can allow an attacker to recover private keys when the library's fallback implementation is used, potentially compromising encrypted communications and authentication. Applications built with browser bundlers or older Node.js environments that rely on this fallback are at risk, which could lead to data breaches and loss of customer trust. Leadership should prioritize remediation because this flaw affects a foundational cryptographic component embedded in many products.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-125887
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB