Which Node.js setting turns on post-quantum algorithms today
If you run Node.js and need post-quantum key exchange or signatures, the first thing to check is the OpenSSL version the binary is linked to, because that library decides what is available. OpenSSL 3.5.0 added ML-KEM, ML-DSA and SLH-DSA. Node.js 24.7.0 exposed ML-KEM and ML-DSA through node:crypto, and Node.js 24.8.0 added SLH-DSA. For TLS, hybrid groups are chosen with the ecdhCurve option of tls.createSecureContext(), for example X25519MLKEM768. The Node.js TLS documentation does not name a hybrid group as the default; the default 'auto' follows the linked OpenSSL library, so do not assume a hybrid group is negotiated until you test it. This page covers enablement only, not inventory or roadmap, and the release lines checked on 2026-12-03 were v26, v24 and v22 (LTS), with v27 listed as Alpha.
Start by running node -p process.versions.openssl against the exact binary your service uses, and confirm the Node.js release line matches the one you plan to keep. Official builds and third-party or distribution builds can link different OpenSSL versions, so the result on a developer laptop may not match production. Node.js 24.5.0 shipped with OpenSSL 3.5.1 in official builds, and Node.js 22.20.0 bundles OpenSSL 3.5.2 in official or default-configuration builds, but the release notes say this does not cover third-party builds that link an external OpenSSL. Confirm that in your own build pipeline rather than assuming it.
Then test the settings in a non-production environment. For key agreement, set ecdhCurve to a colon-separated list that puts the hybrid group first, and confirm the negotiated group with tlsSocket.getEphemeralKeyInfo(), which reports the group name for hybrid ML-KEM groups in builds with OpenSSL 3.5 or later. For signatures in node:crypto, check that the key type you need, such as ml-dsa-65 or ml-kem-768, is accepted by your Node.js line. Note that the Web Crypto API lists ML-KEM-768 and ML-DSA-65 from v24.7.0 and does not list SLH-DSA. Keep the TLS and cipher defaults in view as well, since the minimum TLS version defaults to TLSv1.2, and --tls-cipher-list or NODE_OPTIONS can change them process-wide. Record the Node.js version, OpenSSL version, flags and test results as part of your evidence.
Which Node.js versions and settings expose post-quantum algorithms
This table lists each Node.js surface that exposes post-quantum algorithms, the release or OpenSSL version it first appeared in, and the source for each row. Read it to confirm which runtime line and build type you run before you enable a setting. Hybrid TLS group availability depends on the linked OpenSSL version, so check the build as well as the Node.js version.
| Surface | Available from | Notes and source |
|---|---|---|
| TLS ecdhCurve with X25519MLKEM768 | Depends on linked OpenSSL 3.5 or later | Set in tls.createSecureContext(); default 'auto' follows the linked OpenSSL library (Node.js tls docs) |
| Negotiated group reporting for ML-KEM hybrids | Builds with OpenSSL 3.5 or later | tlsSocket.getEphemeralKeyInfo() returns the hybrid group name (Node.js commit 5396235) |
| node:crypto ML-KEM encapsulate and decapsulate | v24.7.0 (ML-KEM FIPS 203) | Requires OpenSSL 3.5 (Node.js release blog v24.7.0) |
| node:crypto ML-DSA via sign and verify | v24.7.0 (ML-DSA FIPS 204) | Existing sign and verify methods, requires OpenSSL 3.5 (Node.js release blog v24.7.0) |
| ML-DSA and ML-KEM key types | ML-DSA keys in v24.6.0, ML-KEM keys in v24.7.0 | Includes ml-kem-1024 and ml-dsa-87 parameter sets (Node.js crypto docs) |
| SLH-DSA KeyObject, sign and verify | v24.8.0 (SLH-DSA FIPS 205) | Recorded in keyObject.asymmetricKeyType history (Node.js release blog v24.8.0) |
| Web Crypto ML-KEM-768 and ML-DSA-65 | Supported since v24.7.0 | SLH-DSA is not listed on the Web Crypto page (Node.js Web Crypto docs) |
| OpenSSL bundling in Node.js 24.5.0 | Official builds ship OpenSSL 3.5.1 | Released 2025-07-31 (Node.js release blog v24.5.0) |
| OpenSSL bundling in Node.js 22.20.0 | Official and default builds ship OpenSSL 3.5.2 | Released 2025-09-24; third-party builds linked to an external OpenSSL are not covered by this note (Node.js release blog v22.20.0) |
How the TLS hybrid group and the crypto key types are chosen
The first choice is the TLS group. The ecdhCurve option of tls.createSecureContext() takes a colon-separated list of TLS groups, which sets the supported groups and key share groups for TLS 1.3. The Node.js TLS documentation uses X25519MLKEM768 as its example of a hybrid post-quantum group name, and it lists X25519 as a classical example. Leaving the option at its default, 'auto' (the value of tls.DEFAULT_ECDH_CURVE), does not select a post-quantum group on purpose. The docs do not say that a hybrid group is the default, so the set of groups offered follows whichever OpenSSL library Node.js is linked against. OpenSSL 3.5.0 changed its default TLS key shares to offer X25519MLKEM768 and X25519, which means a build linked to that release or later will offer the hybrid group by default. Confirm this on your own build with node -p "process.versions.openssl" and by checking the negotiated group on a test connection, rather than assuming it from the release notes.
The second choice is which key type a program uses for key encapsulation or signatures. The node:crypto module exposes ML-KEM through crypto.encapsulate() and crypto.decapsulate(), and ML-DSA through the existing crypto.sign() and crypto.verify() methods, available when OpenSSL 3.5 is used. The key types the Node.js crypto docs list include ml-kem-512, ml-kem-768, ml-kem-1024, ml-dsa-44, ml-dsa-65 and ml-dsa-87, so the ML-KEM-1024 and ML-DSA-87 parameter sets exist as key types in the docs. The Web Crypto API lists only ML-KEM-768 and ML-DSA-65 among its post-quantum algorithms, so a program that needs a different parameter set must use node:crypto rather than Web Crypto. Before you pick a parameter set, confirm the requirement with your security owner and the program's compliance scope, because the docs describe availability and do not make that choice for you.
Check the decision against the Node.js version you run. The ml-kem and ml-dsa key types arrived in different releases: ML-DSA keys in v24.6.0 and ML-KEM keys in v24.7.0, and SLH-DSA keys in v24.8.0. Node.js 26.0.0 changed ML-KEM and ML-DSA PKCS#8 export to default to the seed-only format, so any code that exports these keys should be tested on the release line you deploy. Record the chosen group, the key types, the Node.js version and the linked OpenSSL version together, because a later upgrade of any one can change what a connection negotiates.
Where the post-quantum choice sits in a TLS 1.3 handshake
The diagram starts with a Node.js TLS 1.3 client or server that builds its secure context, where the ecdhCurve option lists the key share groups it will offer, and its default 'auto' value follows the linked OpenSSL library. That library selects the group during the handshake, and an OpenSSL 3.5 or later build can offer hybrid groups such as X25519MLKEM768. Separately, node:crypto exposes ML-KEM and ML-DSA key types through its own API, a branch that does not change the TLS group selection. To confirm the setup, check the negotiated group with tlsSocket.getEphemeralKeyInfo(), and check the OpenSSL version your Node.js build reports.
Node.js hands TLS group selection and node:crypto key operations to the linked OpenSSL library.
Steps to enable and verify post-quantum support in Node.js
This sequence confirms that the Node.js binary is built against a suitable OpenSSL, that TLS can offer a hybrid ML-KEM key exchange, and that a negotiated post-quantum group is visible in a live connection. It also checks ML-KEM and ML-DSA key generation through node:crypto and keeps classical fallback groups in place so older peers still connect.
Confirm the OpenSSL version in the binary
Run
node -p process.versionsand read theopensslstring. The post-quantum key types and TLS groups described on this page require OpenSSL 3.5 or later, which OpenSSL 3.5.0 introduced with ML-KEM, ML-DSA and SLH-DSA support. 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. If you run a third-party build or one linked to an external OpenSSL, the release notes say the bundled version does not apply, so check the OpenSSL string printed on your own binary. The step is closed when the reported version is 3.5 or later.Confirm the Node.js release line
Check that the Node.js version you run is one that exposes the post-quantum APIs. The ML-KEM functions crypto.encapsulate() and crypto.decapsulate(), and ML-DSA signing through crypto.sign() and crypto.verify(), were announced in v24.7.0, and the Web Crypto API lists ML-KEM-768 and ML-DSA-65 as supported since v24.7.0. SLH-DSA key support arrived in v24.8.0. Compare your version against the release table on the Node.js previous releases page, which lists v26, v24 and v22 as LTS lines as of the date checked. This step closes when your version is v24.7.0 or later and the release notes for that line confirm the feature you need.
Set ecdhCurve to include X25519MLKEM768
In the code that calls tls.createSecureContext(), set the ecdhCurve option to a colon-separated list that includes X25519MLKEM768, for example
X25519MLKEM768:X25519, so that the classical group stays available as a fallback. The default value is 'auto', and the tls docs do not state that a hybrid post-quantum group is the default, so the selection follows the linked OpenSSL library rather than this option. Setting the list explicitly removes that dependence on the library default. Apply the change in the service that terminates TLS, restart it, and confirm the process starts without a TLS configuration error. The step is closed when the service accepts the context and starts cleanly.Confirm the negotiated group on a live socket
After a TLS handshake completes, call tlsSocket.getEphemeralKeyInfo() on the connected socket and read its
typeandnamefields. Node.js reports the negotiated group as type 'TLSGroup' with the group name for hybrid ML-KEM groups when the binary is built with OpenSSL 3.5 or later, and the project's tests cover X25519MLKEM768. Run the check against a client that offers the hybrid group, and record the value returned. A result of X25519 instead means the peer did not offer or accept the hybrid group, which is a valid outcome to log and investigate rather than a failure of the setup. The step is closed when a handshake returns the group you expected or you have recorded the group that was negotiated.Test ML-KEM and ML-DSA key generation
On v24.7.0 or later, run a short script that uses node:crypto to generate an ML-KEM key pair (for example ml-kem-768) and an ML-DSA key pair (for example ml-dsa-65), then performs one encapsulate and decapsulate round trip, and one sign and verify round trip. Check that the keys report the expected
asymmetricKeyTypevalue. Node.js 26.0.0 changed the default PKCS#8 export format for ML-KEM and ML-DSA keys to the seed-only form, so note the version you tested if you export keys. Run this test in a non-production environment first. The step is closed when every round trip returns the matching result and the key types are reported as expected.Keep classical fallback groups in place
Verify that the ecdhCurve list still contains a classical group such as X25519, and that the TLS version and cipher settings your service depends on are unchanged. Post-quantum groups are negotiated only when both sides offer them, so the fallback is what keeps older clients and peers connecting. Review any
--tls-cipher-listorNODE_OPTIONSsetting and any change totls.DEFAULT_CIPHERSto confirm they have not removed the classical groups. Then test a connection from a client that does not offer the hybrid group. The step is closed when that client completes a handshake using a classical group.
How enablement differs by Node.js release line and build type
The v24 line is the one where the supplied facts describe post-quantum algorithms in node:crypto. Official v24 builds from 24.5.0 onward shipped with OpenSSL 3.5.1, and OpenSSL 3.5 is the release that added ML-KEM, ML-DSA and SLH-DSA. Support in Node.js is therefore tied to the OpenSSL version in the build, not only to the Node.js version number.
- Starting point at 24.5.0: official builds shipped with OpenSSL 3.5.1, the first release in this line where the linked OpenSSL provides the post-quantum algorithms.
- Feature additions at 24.6.0 and 24.7.0: ML-DSA keys were recorded in
keyObject.asymmetricKeyTypefrom v24.6.0, and 24.7.0 added ML-KEM throughcrypto.encapsulate()andcrypto.decapsulate()and ML-DSA incrypto.sign()andcrypto.verify(). - Web Crypto coverage: ML-KEM-768 and ML-DSA-65 are listed as supported in the Web Crypto API from v24.7.0. SLH-DSA is not listed there.
- SLH-DSA at 24.8.0: 24.8.0 added SLH-DSA (FIPS 205)
KeyObject, sign and verify support. - TLS groups: the
ecdhCurveoption acceptsX25519MLKEM768as a group name, and its default'auto'follows the linked OpenSSL library.
Confirm the OpenSSL version reported by your installed binary, and confirm the release line you run before relying on any of these features.
The v26 line changes how ML-KEM and ML-DSA private keys are exported. From 26.0.0, Node.js exports these keys in PKCS#8 with the seed-only format by default. Code that expects the expanded private key form, or that reads exported keys with another tool, needs to be checked. The facts supplied for this page do not state the OpenSSL version bundled with every v26 build, so confirm it for the exact build you run.
- Default change at 26.0.0: ML-KEM and ML-DSA PKCS#8 export defaults to the seed-only format from 26.0.0, which was released 2026-05-05.
- Interoperability check: if a downstream system parses exported private keys, test the seed-only output with that system before rollout.
- Lines in the LTS table: as of the release table checked on 2026-12-03, v26 (Lithium) is listed as LTS alongside v24 (Krypton) and v22 (Jod), and v27 is listed as Alpha.
- Algorithm exposure: the key types
ml-kem-512,ml-kem-768,ml-kem-1024,ml-dsa-44,ml-dsa-65andml-dsa-87are documented, so the CNSA 2.0 parameter sets are exposed as key types. - Version check: run
node -p "process.versions.openssl"on each host to confirm the linked OpenSSL version rather than assuming it from the release number.
Confirm the OpenSSL version and the export format on every v26 host before moving private keys between systems.
The v22 line is listed as LTS in the release table checked on 2026-12-03. The supplied facts record the OpenSSL version for one v22 release only: 22.20.0, released 2025-09-24, bundles OpenSSL 3.5.2 in official or default-configuration builds. The supplied facts do not describe the post-quantum key types or the Web Crypto algorithms for v22, so do not assume that v24 features are available there.
- Recorded version: 22.20.0 bundles OpenSSL 3.5.2 in official or default-configuration builds.
- Scope of the statement: the release notes say the bundled OpenSSL does not affect third-party builds that link to an external OpenSSL.
- Feature gap in the facts: the supplied facts do not list the v22 release where ML-KEM or ML-DSA appear in
node:crypto. - Other lines: the OpenSSL version for each LTS line is not stated in every case in the supplied facts, so check the release notes for each specific release.
- Operational note: keep v22 and v24 hosts on separate inventories so the linked OpenSSL version is recorded per host.
Confirm the OpenSSL version and the post-quantum key types supported in your exact v22 release before enabling any setting.
Builds you compile yourself, or builds that a Linux distribution or container image packages, may link to an OpenSSL version that differs from the one in the official Node.js binaries. The 22.20.0 release notes say the bundled OpenSSL does not affect third-party builds that link to an external OpenSSL, which means the external library controls what is available. Post-quantum support therefore depends on the OpenSSL library that the build actually loads.
- External OpenSSL: a build linked to an external OpenSSL gets its post-quantum algorithms and defaults from that library, so the Node.js release number alone does not decide support.
- Check the loaded library: confirm the OpenSSL version through
process.versions.opensslon the host that runs the binary. - Distribution packages: a distribution may patch or configure OpenSSL differently from upstream, so record the package version along with the Node.js version.
- Configuration files: the
--openssl-configflag and theOPENSSL_CONFvariable load an OpenSSL configuration file, which can change the effective settings. - Legacy provider:
--openssl-legacy-providerenables the OpenSSL legacy provider and should be recorded in any inventory if it is set.
Confirm which OpenSSL library each build loads and record it with the build, not only with the Node.js version.
What Node.js has not documented for post-quantum enablement
The Node.js documentation covers the post-quantum building blocks in node:crypto and the TLS group settings, but it does not set a default hybrid group, state a dated roadmap or name CNSA 2.0. The cards below list each gap and the question to put to the Node.js project or to whoever packages your binary.
No documented default hybrid group
The tls docs use X25519MLKEM768 only as an example value for ecdhCurve. The default is 'auto', and the docs do not say that a hybrid group is chosen by default, so the result follows the OpenSSL library linked into your build. Ask the Node.js project, or your binary packager, which group a default build negotiates, and check it with getEphemeralKeyInfo() on a live connection before you rely on it.
TLS docsNo CNSA 2.0 or dated roadmap
The Node.js repository README, the CLI docs and the release notes checked for this page contain no statement about CNSA 2.0 and no dated post-quantum roadmap. Teams that must map their setup to CNSA 2.0 cannot cite a Node.js commitment to those parameter sets or dates. Ask the project in writing for its planned support, the target release lines and any deprecation notice, and record the answer with its date.
CLI docsWeb Crypto without SLH-DSA
The Web Crypto API lists ML-KEM-768 and ML-DSA-65 as supported since v24.7.0, but the page does not list SLH-DSA, even though node:crypto gained SLH-DSA KeyObject, sign and verify support in v24.8.0. Code that uses the Web Crypto interface for hash-based signatures will not find them there. Confirm the supported algorithm list for your exact release before you design around either interface.
Web Crypto docsFIPS flags do not validate a provider
With OpenSSL 3, the --enable-fips flag only adds fips=yes to the default property query and does not load or validate a FIPS provider. crypto.getFips() does not establish that one is loaded either. A FIPS-validated claim needs a validated module named by its certificate, version and issuer. Ask the packager which OpenSSL FIPS provider, if any, ships in your binary, and whether --force-fips strict mode is used.
CLI docsBuild-time OpenSSL version is unclear
Node.js 24.5.0 shipped with OpenSSL 3.5.1 for official builds, and 22.20.0 bundles OpenSSL 3.5.2 in official or default-configuration builds. The release notes say this does not cover third-party builds that link to an external OpenSSL. If your organization uses a distribution or container image, the ML-KEM and ML-DSA behavior depends on the OpenSSL that image actually links. Ask the packager to state the OpenSSL version and whether it is bundled or external.
Release notes v22.20.0Questions engineers ask about enabling post-quantum support in Node.js
Is Node.js quantum safe after enabling these settings?
No product setting makes Node.js quantum safe, and this page does not claim that it does. What the sources support is narrower: from Node.js 24.7.0, the node:crypto module exposes ML-KEM (FIPS 203) through crypto.encapsulate() and crypto.decapsulate(), and ML-DSA (FIPS 204) through crypto.sign() and crypto.verify(), when Node.js is built with OpenSSL 3.5 or later. The TLS documentation shows X25519MLKEM768 as an example group name for ecdhCurve, but it does not say that a hybrid group is the default. Whether a given connection actually negotiates a post-quantum group depends on your OpenSSL build, your settings and the peer. Test the negotiated group on your own connections with tlsSocket.getEphemeralKeyInfo() before you describe the result to anyone.
Which Node.js version is needed to enable post-quantum algorithms?
The version that matters is the one that links OpenSSL 3.5 or later. The documented starting points are Node.js 24.5.0, released 2025-07-31, which shipped with OpenSSL 3.5.1 for official builds, and Node.js 22.20.0, released 2025-09-24, which bundles OpenSSL 3.5.2 in official or default-configuration builds. The ML-KEM and ML-DSA key types arrived in v24.6.0 and v24.7.0, and SLH-DSA key support arrived in v24.8.0. Node.js 26.0.0, released 2026-05-05, changed ML-KEM and ML-DSA PKCS#8 export to the seed-only format by default, so check exported key formats if you upgrade across that line. Confirm the OpenSSL version your build reports, because third-party builds that link an external OpenSSL may differ.
Does enabling post-quantum support in Node.js cost extra or need a paid edition?
The sources checked for this page do not describe any edition, license tier or price for post-quantum support in Node.js. Node.js is an open-source runtime, and the documentation describes the post-quantum features as part of the standard node:crypto and tls modules. The costs you should expect are internal: engineering time to test handshakes and key formats, possible rebuilds if you use a custom or third-party build, and work on peers that do not yet support hybrid groups. Those costs are one-time for the initial test and recur with each Node.js release you adopt. No price or fee figure is supplied for this topic, so confirm with your own licensing and procurement teams, and with any vendor that packages Node.js for you, before you assume there is no charge.
What breaks when you turn on post-quantum key exchange in Node.js?
The documents do not list a complete set of failures, so treat this as a checklist of what to test rather than a list of known breaks. Start with the TLS group negotiation: if you change ecdhCurve to a hybrid group such as X25519MLKEM768, a peer or middlebox that does not offer that group may fail the handshake or fall back. Check the cipher suites too, because the default TLS 1.3 suites are TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 and TLS_AES_128_GCM_SHA256, and a changed cipher list can remove options that peers need. Also test any code that parses PKCS#8 exports of ML-KEM or ML-DSA keys after you move to v26.0.0. Record each failing peer and its response, since the documentation does not say how any particular peer behaves.
What should you ask the Node.js project or your vendor before you rely on post-quantum support?
Ask for statements that the sources do not supply, and record the answer and its date. The Node.js repository README, CLI docs and release notes checked for this page contain no statement about CNSA 2.0 or a dated post-quantum roadmap, so ask whether the project has published one. Ask which OpenSSL version your exact build links, and whether the build uses the bundled or an external OpenSSL. If a vendor packages Node.js for you, ask which Node.js and OpenSSL versions they ship, how they handle the ecdhCurve default, and what their support window is for each release line. The current LTS lines listed on 2026-12-03 are v26 (Lithium), v24 (Krypton) and v22 (Jod). Ask for written answers so your evidence file shows what was confirmed.
Can your team enable post-quantum support in Node.js itself, or do you need outside help?
Many teams can run the first steps in-house: confirm the OpenSSL version in your build, set ecdhCurve in a test environment, and check the negotiated group with tlsSocket.getEphemeralKeyInfo() on a few connections. The work that takes longer is the inventory of where your services use Node.js TLS and keys, testing against every peer you talk to, and writing the evidence that a security review will ask for. DeployOpen plans, implements, tests and documents self-hosted platforms in your own infrastructure, and it can run a fixed-scope engagement with written deliverables. DeployOpen does not issue audit reports or certifications, so any assessment you need still goes to an independent auditor. Scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that written scope.
Does the FIPS setting in Node.js make the post-quantum algorithms FIPS validated?
No. The --enable-fips flag with OpenSSL 3 only adds fips=yes to the default property query, and it does not load or validate a FIPS provider. crypto.getFips() does not establish that a FIPS provider is loaded or validated either. The --force-fips flag has an optional strict mode, added in v26.9.0, that rejects non-approved operations reported by the OpenSSL FIPS indicator, and it requires OpenSSL 3.4 or later. If your assessment needs a validated module, ask which FIPS provider is in your build, get its certificate number from the provider, and confirm the module version in your own environment. The Node.js documentation does not supply a validation status for ML-KEM or ML-DSA, so do not record one based on these flags.
How DeployOpen works on this
DeployOpen approaches post-quantum configuration in Node.js as a scoped engineering task. We confirm which Node.js release line and OpenSSL build your servers run, then set up and test the TLS groups, signature algorithms and node:crypto key types in your own environment. Every change is documented so your team can review and repeat it.
How we scope
- We confirm the Node.js release line and whether official or third-party builds are in use, since OpenSSL version determines what is available.
- We list the services that terminate TLS or sign data with Node.js, and which TLS groups and certificates each one currently uses.
- Engagements are fixed-scope, with the enablement steps, test cases and deliverables agreed in writing before work starts.
How we build
- We set ecdhCurve, sigalgs and cipher options in tls.createSecureContext() and test the negotiated group with tlsSocket.getEphemeralKeyInfo().
- We test ML-KEM and ML-DSA key handling through node:crypto and the Web Crypto API on the exact release line your team runs.
- We check connections against older clients and middleboxes in a staging environment before any change reaches production traffic.
How we hand over
- We deliver a written record of the flags, environment variables, OpenSSL settings and code changes applied to each service.
- We document the test results, including which clients negotiated hybrid groups and which failed, so your team can verify them later.
- We walk your engineers through the configuration and rollback steps, so they can operate and reproduce the setup themselves.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, for example when a new Node.js release line changes defaults.
- We retest after Node.js or OpenSSL upgrades, since default groups and key types can change between releases.
- Ask us to confirm the enablement status of each release line in writing before you schedule a production change.

