JLSEC-2026-1936: The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing...

Published Dec 2, 2026
·
Updated

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

3 affected componentsFixes available
julia/nodejs_16_jll<16.20.2+0
16.20.2+0
julia/nodejs_18_jll<18.16.1+0
18.16.1+0
julia/libnode_jll>=16.14.0+0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade julia/NodeJS_16_jll to a version that resolves this vulnerability.

    Fixed in 16.20.2+0
  2. Upgrade

    Upgrade julia/NodeJS_18_jll to a version that resolves this vulnerability.

    Fixed in 18.16.1+0

Event History

Dec 2, 2026
Advisory Published
via OSV·03:31 PM
Data Sourced
via OSV·03:31 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

Does exploitation require authentication or user interaction?

The supplied severity vector indicates network reachability, low attack complexity, no required privileges, and no user interaction.

3

What is the stated security impact?

The severity vector indicates a high integrity impact, with no stated confidentiality or availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203