JLSEC-2026-1936: The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing...
The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPrivateKey(). However, the documentation says this API call: "Generates private and public Diffie-Hellman key values".
The documented behavior is very different from the actual behavior, and this difference could easily lead to security issues in applications that use these APIs as the DiffieHellman may be used as the basis for application-level security, implications are consequently broad.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/NodeJS_16_jllto a version that resolves this vulnerability.Fixed in 16.20.2+0 - Upgrade
Upgrade
julia/NodeJS_18_jllto a version that resolves this vulnerability.Fixed in 18.16.1+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments should be reviewed first?
Review applications using crypto.createDiffieHellman() where code calls setPrivateKey() and relies on generateKeys() to establish or refresh the corresponding public key. These uses may underpin application-level security mechanisms.
Does exploitation require authentication or user interaction?
The supplied severity vector indicates network reachability, low attack complexity, no required privileges, and no user interaction.
What is the stated security impact?
The severity vector indicates a high integrity impact, with no stated confidentiality or availability impact.