Node.js post-quantum compatibility with clients and peers

Node.js can offer the hybrid X25519MLKEM768 TLS group when built with OpenSSL 3.5 or later, but its default 'auto' group choice follows the linked OpenSSL, so compatibility with older clients and middleboxes must be tested before any change.

On this page

Does Node.js hybrid post-quantum key exchange work with older clients and peers?

Hybrid X25519MLKEM768 key exchange in a Node.js TLS server or client depends on OpenSSL 3.5 or later under the Node.js build, and the default ecdhCurve value 'auto' follows the linked OpenSSL library rather than a documented hybrid default, so the group that is actually offered depends on your build and environment. The release-line facts were checked on 2026-12-03. The Node.js project does not publish compatibility outcomes for older clients, peers or middleboxes, so you must test them yourself. Start by confirming the OpenSSL version reported by the exact binary you run, because a third-party build that links an external OpenSSL may differ from the official build. Official Node.js 22.20.0 builds bundle OpenSSL 3.5.2, but the release notes say this does not affect third-party builds that link to an external OpenSSL.

To see what your server negotiates, set ecdhCurve explicitly on tls.createSecureContext() to a colon-separated list such as X25519:X25519MLKEM768 in a test environment, then inspect the result with tlsSocket.getEphemeralKeyInfo(). The commit that reports negotiated TLS groups makes that call return type 'TLSGroup' with the group name for hybrid ML-KEM groups, but only when built with OpenSSL 3.5 or later, so an older build will not show the hybrid group at all. Test with the client population you actually serve: older browsers, legacy API clients, embedded devices, and the load balancers, proxies and TLS inspection appliances between them. A handshake failure, a retry with a weaker group, or a stall on a large ClientHello are all signals to record. Because hybrid key shares are larger than classical ones, a middlebox that mishandles bigger handshake messages can break connections that otherwise succeed, so plan for fallback to X25519 where a peer cannot complete the handshake.

Which Node.js versions and settings apply to hybrid key exchange

This table compares the Node.js release lines and the TLS and OpenSSL settings that decide whether hybrid key exchange such as X25519MLKEM768 is offered. Read each row against the Node.js version and OpenSSL version you actually run, because bundled OpenSSL differs by release line. The main takeaway is that hybrid support depends on the OpenSSL version in use and on the ecdhCurve setting, not on the Node.js version number alone.

ItemWhat it applies toSource and date
Node.js v26 (Lithium), LTS lineListed as LTS on the release table checked 2026-12-03. Its bundled OpenSSL version is not stated in the facts supplied, so confirm it with process.versions.openssl on your build.Node.js previous releases, checked 2026-12-03
Node.js v24 (Krypton), LTS lineNode.js 24.5.0 shipped with OpenSSL 3.5.1 for official builds. Later v24 releases may bundle other OpenSSL versions, so verify on your build.Node.js release blog v24.5.0, 2025-07-31
Node.js v22 (Jod), LTS lineNode.js 22.20.0 bundles OpenSSL 3.5.2 in official or default-configuration builds. Builds that link an external OpenSSL are not affected by this bundling.Node.js release blog v22.20.0, 2025-09-24
OpenSSL 3.5.0 default keysharesFrom OpenSSL 3.5.0, the default TLS keyshares offer X25519MLKEM768 and X25519, so a build with OpenSSL 3.5 or later can offer the hybrid group by default.OpenSSL 3.5 release notes, 2025-04-08
ecdhCurve option, default 'auto'In tls.createSecureContext(), ecdhCurve sets TLS groups and TLS 1.3 key share groups. The default is 'auto', and the docs do not say a hybrid group is the default, so 'auto' follows the linked OpenSSL library.Node.js tls docs, checked 2026-12-03
Hybrid group names in getEphemeralKeyInfoThe commit 'tls: report negotiated TLS groups' makes getEphemeralKeyInfo() return type 'TLSGroup' with the name for hybrid ML-KEM groups when built with OpenSSL 3.5 or later. Its tests cover X25519MLKEM768.Node.js commit 5396235, checked 2026-12-03
Third-party builds linking external OpenSSLThe 22.20.0 bundling change does not affect third-party builds that link an external OpenSSL. Their hybrid support depends on the version of that external library, which you must confirm.Node.js release blog v22.20.0, 2025-09-24

Which parts of Node.js TLS the compatibility question touches

A hybrid post-quantum key exchange is offered or accepted only when several Node.js TLS settings and the OpenSSL library under them allow it together. Check each component below on the exact build and configuration you run, because a change in one can alter what a client or peer negotiates.

TLS group negotiation

The ecdhCurve option in tls.createSecureContext() sets the TLS groups and TLS 1.3 key share groups that Node.js offers or accepts, as a colon-separated list such as X25519MLKEM768. It defaults to tls.DEFAULT_ECDH_CURVE, which is 'auto'. The docs do not say a hybrid group is the default, so with 'auto' the groups offered follow the linked OpenSSL library. Check the negotiated group on a live connection, not only the configuration.

TLS docs

Cipher list and build default

The default cipher list is set at build time as crypto.constants.defaultCoreCipherList and can be replaced with --tls-cipher-list, which also works through NODE_OPTIONS, or by changing tls.DEFAULT_CIPHERS before sockets open. The TLS 1.3 suites enabled by default cover AES-GCM and ChaCha20-Poly1305. A cipher list that excludes a suite does not by itself control key exchange groups, so check the cipher list and the group list separately.

TLS docs

TLS version range

The default minimum is TLSv1.2 and the default maximum is TLSv1.3, set through tls.DEFAULT_MIN_VERSION and tls.DEFAULT_MAX_VERSION. The flags --tls-min-v1.0 through --tls-min-v1.3 and --tls-max-v1.2 and --tls-max-v1.3 change the range for the whole process. Hybrid key exchange is a TLS 1.3 feature, so a peer or client capped at TLS 1.2 will not negotiate a hybrid group, and a maximum set below 1.3 removes it entirely.

CLI docs

OpenSSL version and configuration

Node.js official builds bundle OpenSSL, and the group support comes from that library. Node.js 24.5.0 shipped with OpenSSL 3.5.1 and Node.js 22.20.0 with OpenSSL 3.5.2. The release notes say the 22.20.0 bundle does not affect third-party builds linked to an external OpenSSL. The --openssl-config flag and OPENSSL_CONF variable load a configuration file, so confirm the OpenSSL version your binary links to and whether a config file changes the group list.

OpenSSL 3.5 notes

CA trust store sources

Node.js reads trusted CA certificates from a bundled Mozilla store (tls.rootCertificates), and the flags --use-openssl-ca, --use-bundled-ca and --use-system-ca plus the variables NODE_EXTRA_CA_CERTS, SSL_CERT_FILE and SSL_CERT_DIR choose which store applies. Trust store choice does not change key exchange groups, but it decides whether a peer's certificate chain is accepted at all. Confirm which source is active on each host before testing a handshake, so a certificate failure is not mistaken for a group failure.

CLI docs

Ephemeral key reporting

tlsSocket.getEphemeralKeyInfo() reports the group negotiated for a connection. A Node.js commit titled 'tls: report negotiated TLS groups' makes it return type TLSGroup with the group name for hybrid ML-KEM groups when built with OpenSSL 3.5 or later, with tests covering X25519MLKEM768. Use it to confirm the group actually negotiated on each connection, and treat a fallback to a classical group as a result to record, not a failure to hide.

Commit 5396235

How compatibility differs by Node.js build and deployment

Official Node.js builds on the v24 and v26 release lines bundle OpenSSL 3.5 or later. The Node.js 24.5.0 release shipped with OpenSSL 3.5.1 for official builds, and OpenSSL 3.5.0 changed the default TLS keyshares to offer X25519MLKEM768 and X25519. In these builds, the ecdhCurve option defaults to 'auto', which follows the linked OpenSSL library, so a hybrid group can be offered without a code change.

  • Default offer: Under 'auto', the group list comes from OpenSSL. Confirm the exact OpenSSL version reported by process.versions.openssl on your deployed binary.
  • Negotiated group visibility: From the commit that added TLSGroup reporting, tlsSocket.getEphemeralKeyInfo() returns the hybrid group name when built with OpenSSL 3.5 or later.
  • Ciphers unchanged: The default TLS 1.3 suites are TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 and TLS_AES_128_GCM_SHA256, and key exchange is separate from these.
  • Version range: The default range is TLSv1.2 to TLSv1.3, so hybrid key shares apply only where TLS 1.3 is negotiated.
  • Not recorded: The facts do not say how older clients or middleboxes respond to a hybrid offer.

Before relying on this tab, run the same handshake against your own older clients and any inspection or load balancing device, and record the negotiated group and whether the connection succeeds.

What to test first before changing Node.js TLS group settings

This sequence establishes which TLS groups a Node.js build can offer and which ones peers actually negotiate today, so that any change to key exchange settings is made against a recorded baseline and keeps a classical fallback for older clients and middleboxes.

  1. Confirm the Node.js build and OpenSSL version

    The operator who owns the runtime records the exact Node.js release line and the OpenSSL version it reports, using node -p with process.versions and the openssl field of process.versions. Official Node.js 24 and 22 builds bundle OpenSSL 3.5 or later in the releases the facts name, but third-party builds may link to an external OpenSSL, so the reported version is what counts, not the release number alone. The step is closed when the Node.js version, the OpenSSL version and the build source are written into the test record for each environment under review.

  2. Check whether ecdhCurve is pinned or left at auto

    The engineer who maintains the application reviews every tls.createSecureContext() call, every server or client options object and any --tls-cipher-list or NODE_OPTIONS setting for an ecdhCurve value. The default tls.DEFAULT_ECDH_CURVE is 'auto', which follows the linked OpenSSL library, so a build with OpenSSL 3.5 may offer a hybrid group without any code change. A pinned value such as X25519 will keep the group list fixed. The step is closed when each context is listed as either pinned, with its exact value, or left at 'auto'.

  3. Establish a baseline of negotiated groups

    The engineer runs a test server and client built from the target Node.js version, completes a TLS 1.3 handshake, and calls tlsSocket.getEphemeralKeyInfo() on the client socket to read the negotiated group. The facts say that builds with OpenSSL 3.5 or later report hybrid ML-KEM groups by name, such as X25519MLKEM768, in the returned type and name fields, so the output should be checked against the expected group. The step is closed when the baseline output for each Node.js version and each test pair is saved alongside the earlier version and OpenSSL checks.

  4. Test a hybrid-offering build against older peers

    The network or platform engineer deploys a build that offers a hybrid group to a set of representative older clients, older load balancers and TLS-inspecting middleboxes, using the same certificates and cipher settings as production. Each handshake is recorded as succeeded or failed, along with the group negotiated and any alert or fallback observed. Because the facts do not give a support matrix for specific client or middlebox versions, the list of peers must be assembled from the organization's own inventory. The step is closed when every peer in the representative set has a recorded outcome for the hybrid build.

  5. Keep classical fallback until results are recorded

    The engineering lead keeps a configuration in which the classical groups, such as X25519 and the prime-field curves already in use, remain available, so that peers which cannot complete a hybrid handshake still connect. Changes to ecdhCurve or the cipher list are promoted only after the test records show which peers fail and why. The step is closed when the production configuration, the fallback groups and the test record are reviewed together and approved by the owner of the service.

Node.js negotiates hybrid TLS groups only when OpenSSL 3.5 or later is linked and the peer accepts them

This illustrative sequence starts with a TLS 1.3 handshake from a Node.js server built with OpenSSL 3.5 or later and the default ecdhCurve of 'auto'. The server sends its key share offer, and the peer either accepts a hybrid group such as X25519MLKEM768 or returns a different group. If the peer or a middlebox rejects the offer, the handshake can fall back to X25519. After the handshake, getEphemeralKeyInfo() reports the group that was actually negotiated, so check that value on each peer you test.

Illustrative TLS 1.3 handshake showing the key share offer, group selection, X25519 fallback and the reported group.

What can break or silently fall back during a hybrid key exchange rollout

A hybrid key exchange changes what a Node.js server or client offers during the TLS handshake, so the same configuration can behave differently against different peers and builds. The risks below are the points where a connection can fail, or quietly negotiate a weaker group than the one you intended, and each one has a specific check to run before and after a rollout.

Older clients and middleboxes

Some older clients, load balancers and inspection devices may reject the larger key shares that a hybrid group sends, such as X25519MLKEM768. The Node.js project has not published how common these failures are or how peers respond, so the outcome is unknown until you test it. Run handshakes from the client versions and network devices your users and partners actually use, and record which ones fail and how.

Node.js TLS docs

Silent fallback to classical groups

When a peer does not offer a hybrid group, the handshake can complete with a classical group such as X25519 and report no error. A successful connection therefore does not show that a hybrid group was used. Check the negotiated group on live connections using tlsSocket.getEphemeralKeyInfo(), which reports the group name for hybrid ML-KEM groups in builds with OpenSSL 3.5 or later.

Commit 5396235

Third-party builds linking another OpenSSL

The OpenSSL version that runs your TLS code depends on how Node.js was built. Official builds ship with a bundled OpenSSL, but a third-party build that links an external OpenSSL uses that library's version and its group defaults. Confirm the OpenSSL version reported by the exact binary you deploy, not the Node.js release number, before assuming a hybrid group is available.

Bundled OpenSSL in 22.20.0
3.5.2
Node.js 22.20.0 notes

Narrowed TLS version range from CLI flags

The CLI flags --tls-min-v1.2, --tls-min-v1.3 and --tls-max-v1.2 change the TLS version range for the whole process, not only for one server. A flag that caps the maximum at TLS 1.2 removes TLS 1.3 entirely, and with it the key exchange path where hybrid groups are offered. Check the flags and NODE_OPTIONS in each service's startup configuration, and confirm the negotiated protocol version on test connections.

Default maximum version
TLSv1.3
Node.js CLI docs

OpenSSL configuration file group defaults

An OpenSSL configuration file loaded through --openssl-config or OPENSSL_CONF can change which groups and defaults the library uses, so the group set may differ from what the Node.js documentation describes. Load a configuration file only when you have checked its contents. Compare the group list in a test process with and without the file, and keep the file under version control so changes are visible.

Node.js CLI docs

Explicit ecdhCurve overrides

The ecdhCurve option defaults to 'auto', which follows the linked OpenSSL library. Setting it to a fixed list, such as one that omits a hybrid group, removes the hybrid option even when the library supports it, and a list that includes a hybrid group only works with peers that accept it. Review every tls.createSecureContext() call and any shared configuration for hard-coded group lists before a rollout.

Node.js TLS docs

Questions operators ask about Node.js hybrid key exchange and compatibility

Is Node.js quantum safe?

The accurate answer is that Node.js supports some post-quantum algorithms, but no supplied source establishes that a Node.js deployment is quantum safe or meets any compliance standard. Node.js 24.7.0 announced ML-KEM (FIPS 203) through crypto.encapsulate() and crypto.decapsulate(), and ML-DSA (FIPS 204) in crypto.sign() and crypto.verify(), when built with OpenSSL 3.5 or later. Whether a given connection uses a post-quantum group depends on the OpenSSL library, the ecdhCurve setting and the peer. Confirm each of these in your own environment before describing any service as quantum safe.

Which Node.js and OpenSSL versions are needed for hybrid key exchange?

Hybrid key exchange depends on OpenSSL 3.5 or later. OpenSSL 3.5.0, released 8 Apr 2025, added ML-KEM, ML-DSA and SLH-DSA support and changed the default TLS keyshares to offer X25519MLKEM768 and X25519. Node.js 24.5.0 shipped with OpenSSL 3.5.1 for official builds, and Node.js 22.20.0 bundles OpenSSL 3.5.2 in official or default-configuration builds. Third-party builds that link to an external OpenSSL use whatever version is installed, so check it. As of the release table checked on 2026-12-03, the LTS lines are v26, v24 and v22, and v27 is Alpha. Node.js 26.0.0 was released 2026-05-05. Confirm the OpenSSL version with node -p process.versions.openssl.

Is a hybrid post-quantum group used by default in Node.js?

The supplied documentation does not say that a hybrid post-quantum group is the default in Node.js. The tls.createSecureContext() ecdhCurve option defaults to tls.DEFAULT_ECDH_CURVE, whose value is 'auto', and the docs use X25519MLKEM768 only as an example group name. In 'auto' mode, the group selection follows the linked OpenSSL library. With OpenSSL 3.5 or later, OpenSSL's own default keyshares include X25519MLKEM768, but whether a Node.js server or client actually negotiates it depends on the OpenSSL configuration, the ecdhCurve setting and the peer. Set ecdhCurve explicitly if you need a specific group, and test the result.

How do you confirm which TLS group was negotiated in Node.js?

Use tlsSocket.getEphemeralKeyInfo() on a connected TLS socket. A Node.js commit titled 'tls: report negotiated TLS groups' makes this method return type 'TLSGroup' with the group name for hybrid ML-KEM groups when Node.js is built with OpenSSL 3.5 or later, and its tests cover X25519MLKEM768. Check the return value in your own build, because this behavior comes from a commit and not from a release note in the supplied facts. Log the negotiated group on both ends, and run the check against each client type you support. Record the Node.js version, OpenSSL version and ecdhCurve value alongside the result.

What breaks when older clients connect to a Node.js server using hybrid groups?

A client that does not offer a hybrid group can still connect, provided the server accepts a classical group in the negotiation. The supplied facts do not describe what happens with specific older clients, middleboxes or peers, so test them. Check these points: whether the client supports TLS 1.3, since the default maximum in Node.js is TLSv1.3 and the default minimum is TLSv1.2; whether the cipher suites offered by both sides overlap; and whether the signature algorithms in your sigalgs setting match what the peer accepts. Middleboxes that inspect TLS handshakes may also reject larger ClientHello messages, and the supplied facts do not quantify this. Test with real traffic from each client population before changing defaults.

Has the Node.js project published compatibility guidance for post-quantum migration?

The supplied sources contain no statement from the Node.js project about CNSA 2.0 or a dated post-quantum roadmap. The Node.js repository README, the CLI docs and the release notes checked for this page include no such guidance. The project does document the tls and crypto APIs, the ecdhCurve and sigalgs options, and the release notes for ML-KEM and ML-DSA support. Check the Node.js release notes and the official documentation for updates, and ask the project or your vendor if you need a written statement on compatibility.

Can our team run hybrid key exchange tests ourselves, or do we need outside help?

Your team can run the basic tests itself. The work includes upgrading to a Node.js release built with OpenSSL 3.5 or later, checking the negotiated group with getEphemeralKeyInfo(), and testing each client population. These tests need time from engineers who know the TLS and ecdhCurve settings, and results should be written down with the versions used. Outside help is worth considering when the test covers many services, middleboxes or peers that you do not control, or when you need an independent record for an assessment. DeployOpen plans and runs fixed-scope engagements, and the written scope and deliverables are agreed before work starts. Pricing follows from that written scope.

How DeployOpen helps plan and test Node.js TLS changes

DeployOpen starts from the clients, peers and middleboxes your Node.js services actually talk to, then tests how hybrid key exchange behaves with them before any change reaches production. The work is scoped in writing, built in your own infrastructure, and handed over with the test evidence your security and operations teams need to review.

How we scope

  • Inventory which Node.js services terminate TLS and which clients, peers and middleboxes they connect with.
  • Record the Node.js and OpenSSL versions in use, since the default TLS group behavior depends on the linked OpenSSL library.
  • Agree the written scope, deliverables and timeline with you before any work starts, as is standard for our fixed-scope engagements.

How we build

  • Build a test environment that reproduces your TLS settings, including ecdhCurve, sigalgs and cipher list values, for review.
  • Check whether the negotiated group appears through tlsSocket.getEphemeralKeyInfo() when Node.js is built with OpenSSL 3.5 or later.
  • Test handshakes with older clients and peers, and with middleboxes in the path, to find failures before any default changes.

How we hand over

  • Deliver a written report of compatibility test results, listing each client, peer and middlebox tested and its outcome.
  • Document the exact configuration used, so your engineers can reproduce the results on their own systems.
  • Walk your operations and security teams through the findings and the rollback steps for each setting changed.

How we support

  • Ongoing support and retesting are available as a retainer, for example after a Node.js release line changes.
  • Retesting can cover new Node.js releases and OpenSSL updates that alter the default TLS group selection.
  • Ask for the support scope and retesting frequency in writing, so your change calendar reflects what is covered.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.