What Node.js needs to use post-quantum algorithms

Node.js exposes post-quantum algorithms through its node:crypto module and TLS groups only when it is linked to OpenSSL 3.5 or later, with ML-KEM from v24.7.0 and ML-DSA from v24.6.0 onward. Engineers need the right runtime line, a matching OpenSSL, and TLS settings that keep hybrid groups enabled.

On this page

Does Node.js need anything extra to use post-quantum algorithms?

Post-quantum algorithms in Node.js depend on the OpenSSL library that the Node.js binary is linked to, and that library must be version 3.5 or later. The Node.js runtime line must also expose the APIs: ML-DSA arrived in v24.6.0, ML-KEM in v24.7.0 and SLH-DSA in v24.8.0. As of 2026-12-04, the Node.js documentation and release notes we checked do not publish a dated post-quantum roadmap, so the status below reflects what the current docs and release notes state, not a commitment.

The first check belongs to whoever builds or deploys Node.js for the team. Official builds in the v24 line shipped with OpenSSL 3.5.1 from v24.5.0 onward, and the v22.20.0 release bundles OpenSSL 3.5.2 in official or default-configuration builds. The release notes state that this does not apply to third-party builds that link to an external OpenSSL, so anyone using a distribution package, a container base image or a custom build must confirm which OpenSSL version is actually linked, for example by checking the output of node -p process.versions.openssl on each host and image.

The second check belongs to the engineers who write the application code. Confirm the Node.js major version against the release table, which listed v26, v24 and v22 as LTS on 2026-12-03, and confirm that the line you run includes the APIs you intend to use. The Web Crypto API lists ML-KEM-768 and ML-DSA-65 from v24.7.0 and does not list SLH-DSA, so SLH-DSA is available through node:crypto only. Also confirm whether the FIPS flags in use, such as --enable-fips, load a validated provider, because the docs say they do not.

Which Node.js versions and components meet each requirement

This table compares each Node.js release line and its bundled OpenSSL version against the post-quantum APIs it exposes, so you can see which builds can use ML-KEM, ML-DSA or SLH-DSA. Read each row against your own build: official binaries and default-configuration builds differ from third-party builds linked to an external OpenSSL. Confirm your exact version with node -p process.versions before planning an upgrade.

Release lineBundled OpenSSL (official builds)Post-quantum APIs availableNotes
Node.js v26 (LTS as checked 2026-12-03)Not stated in the facts supplied for this page; confirm in the v26 release notesML-KEM and ML-DSA PKCS#8 export defaults to seed-only format (v26.0.0, released 2026-05-05)Confirm the bundled OpenSSL version for your exact release
Node.js v24 (LTS as checked 2026-12-03)3.5.1 in 24.5.0 (released 2025-07-31)ML-DSA from v24.6.0, ML-KEM and Web Crypto from v24.7.0, SLH-DSA from v24.8.0Check your minor version; ML-KEM needs v24.7.0 or later
Node.js v22 (LTS as checked 2026-12-03)3.5.2 in 22.20.0 (released 2025-09-24)Post-quantum APIs in the facts are documented for v24 and later; confirm for v22The 22.20.0 notes say third-party builds linked to an external OpenSSL are not affected by the bundled version
Node.js v27 (Alpha)Not stated in the facts supplied for this pageNot stated in the facts supplied for this pageAlpha releases are not for production use; confirm status on the previous releases page
Third-party builds linked to external OpenSSLSet by the external OpenSSL library, not by Node.jsDepends on the linked OpenSSL version being 3.5 or laterCheck the OpenSSL version the binary links to, and confirm with the distributor
Web Crypto APIFollows the Node.js buildML-KEM-768 and ML-DSA-65 supported from v24.7.0; SLH-DSA not listedConfirm the algorithm list in the Web Crypto docs for your version

Which parts of Node.js a post-quantum upgrade touches

A post-quantum upgrade of Node.js is not a single switch. It touches the OpenSSL library the binary links to, the node:crypto module, the TLS layer, the trust store, OpenSSL configuration, and the chain that verifies downloads and packages. Each component below states what it means for the answer and what to check first.

OpenSSL library version

Post-quantum algorithms in Node.js come from the OpenSSL library the binary is built with. The Node.js 24.7.0 release announced ML-KEM and ML-DSA through node:crypto when OpenSSL 3.5 is used, and OpenSSL 3.5.0 added ML-KEM, ML-DSA and SLH-DSA support. Check which OpenSSL version your Node.js build reports, because official builds and third-party builds that link to an external OpenSSL can differ.

OpenSSL 3.5 notes

node:crypto module and key types

The node:crypto module exposes ML-KEM, ML-DSA and SLH-DSA key types in the releases that added them, with ML-DSA and ML-KEM key support recorded in v24.6.0 and v24.7.0 and SLH-DSA in v24.8.0. Applications that generate or verify keys in code depend on these key types, so check which release line your application runs and which key types its code calls. The Web Crypto API lists ML-KEM-768 and ML-DSA-65 only, with no SLH-DSA.

Node.js crypto docs

TLS group and signature settings

The ecdhCurve option sets the TLS groups and key shares, and its default is 'auto'. The docs use X25519MLKEM768 as an example group name but do not state that a hybrid post-quantum group is the default, so the 'auto' selection follows the linked OpenSSL behavior. The sigalgs, cipher list and version flags also shape which algorithms a connection negotiates. The facts give no post-quantum default for TLS group selection beyond that OpenSSL behavior, so test the negotiated group in your own environment.

Node.js tls docs

CA and trust store settings

Node.js reads trusted CA certificates from a bundled Mozilla store, and the flags --use-openssl-ca, --use-bundled-ca and --use-system-ca plus NODE_EXTRA_CA_CERTS, SSL_CERT_FILE and SSL_CERT_DIR control which CAs are used. A new post-quantum certificate chain only validates if the trust store your Node.js process reads contains the issuing CA. Confirm which store each deployment uses before changing certificates.

Node.js CLI docs

OpenSSL configuration and legacy provider

The --openssl-config flag and the OPENSSL_CONF environment variable load an OpenSSL configuration file, and --openssl-legacy-provider enables the legacy provider. A configuration file can change which algorithms and groups OpenSSL offers, so an environment-level setting can override what you intended. Record which configuration file each process loads, and confirm whether the legacy provider is enabled.

Node.js CLI docs

Verified download and npm signature chain

Node.js release downloads are verified with a SHASUMS256.txt.asc file carrying SHA checksums and a releaser PGP signature, checked against keys in the nodejs/release-keys repository. npm registry signatures are moving from PGP to ECDSA, and the npm CLI currently supports only ecdsa-sha2-nistp256 keys. Include these verification steps in the upgrade plan, since a new Node.js build or package must still pass the existing signature checks.

npm registry signatures

How the requirements differ by how Node.js was installed

Official builds from nodejs.org bundle their own copy of OpenSSL, so the OpenSSL version you run is the one shipped with your Node.js release line. The release notes state the bundled OpenSSL version for each release. Node.js 24.5.0, released 2025-07-31, shipped with OpenSSL 3.5.1 for official builds, and Node.js 22.20.0, released 2025-09-24, bundles OpenSSL 3.5.2 in official or default-configuration builds. OpenSSL 3.5.0 added support for ML-KEM, ML-DSA and SLH-DSA.

  • Bundled OpenSSL version: Confirm the version reported by node -p process.versions.openssl on your host, since it is the value that governs what is available.
  • Release line matters: Node.js 24.7.0 announced ML-KEM and ML-DSA through node:crypto when OpenSSL 3.5 is used. Run the version check on the release line you actually deploy.
  • Hybrid key exchange default: OpenSSL 3.5.0 changed the default TLS keyshares to offer X25519MLKEM768 and X25519. The ecdhCurve default of 'auto' follows the linked OpenSSL library.
  • Verify downloads: Release binaries are checked with the SHASUMS256.txt.asc file and keys from the nodejs/release-keys repository.
  • Supported lines: As of the release table checked on 2026-12-03, v26, v24 and v22 are listed as LTS.

Before you rely on an official build for post-quantum features, record the Node.js version and the reported OpenSSL version on each host.

What to check before enabling post-quantum algorithms in Node.js

This sequence confirms that the Node.js build, its OpenSSL library and its key and TLS settings support post-quantum algorithms before anyone changes configuration. Each step records a result you can attach to your upgrade ticket or inventory, so the next person can see which version was tested and what it returned.

  1. Confirm the release line and OpenSSL version

    Run node --version to record the Node.js release line, then run node -p "process.versions.openssl" to read the OpenSSL version that this binary reports. The release table checked on 2026-12-03 lists v26 (Lithium), v24 (Krypton) and v22 (Jod) as LTS lines, and v27 as Alpha, so confirm your line is one you intend to keep in production. Post-quantum algorithms in node:crypto depend on OpenSSL 3.5 or later, so write down the reported version. This step is done when you have both the Node.js version and the OpenSSL version in your record.

  2. Confirm the build is official or linked to OpenSSL 3.5

    Determine where the binary came from. Official Node.js 24.5.0 builds shipped with OpenSSL 3.5.1, and Node.js 22.20.0 bundles OpenSSL 3.5.2 in official or default-configuration builds. The 22.20.0 release notes say this does not apply to third-party builds that link to an external OpenSSL, so a distribution package or custom build may report a different version. If the OpenSSL version from the previous step is below 3.5, the build does not support these algorithms and you need a build that does. This step is done when you have recorded whether the binary is official or third-party and that its OpenSSL version is 3.5 or later.

  3. Verify the release download integrity

    Before relying on an official binary, check it against the release's SHASUMS256.txt.asc file, which carries SHA checksums and a releaser PGP signature. The Node.js repository README describes checking that signature against keys in the nodejs/release-keys repository. Compare the file's hash with your downloaded archive and confirm the signature verifies. Record the release file name and the signing key you used. This step is done when the checksum and signature both verify for the exact archive you plan to install.

  4. Test the node:crypto post-quantum key types

    Run a short script that calls crypto.generateKeyPairSync with the types ml-kem-768 and ml-dsa-65, and record whether each call returns a key without error. The node:crypto docs list ml-kem-512, ml-kem-768, ml-kem-1024, ml-dsa-44, ml-dsa-65 and ml-dsa-87 as key types, and the Web Crypto API lists ML-KEM-768 and ML-DSA-65 as supported since v24.7.0. Use a test script in your scratchpad directory, not in your application. Note that SLH-DSA is available from v24.8.0 in node:crypto but is not on the Web Crypto list. This step is done when both key types generate successfully on the binary you tested.

  5. Check the TLS group options and the auto default

    Read the ecdhCurve option in tls.createSecureContext(). The default is tls.DEFAULT_ECDH_CURVE, whose value is 'auto', and the option accepts a colon-separated list of groups such as X25519 or X25519MLKEM768. The tls docs do not state that a hybrid post-quantum group is the default, so the 'auto' selection follows the linked OpenSSL library. Confirm the actual choice by starting a TLS connection to a test peer and checking tlsSocket.getEphemeralKeyInfo(), which reports the group name for hybrid ML-KEM groups when built with OpenSSL 3.5 or later. This step is done when you know whether 'auto' selected a hybrid group in your test connection, or whether you need to set ecdhCurve explicitly.

  6. Record the version and the test results

    Write a single record containing the Node.js version from node --version, the OpenSSL version from process.versions.openssl, whether the build is official or third-party, the result of each key type test, the TLS group your test connection negotiated, and the date you ran the checks. Include the hash and signing key from the download check. Note the CLI flags and environment variables in use, such as --tls-cipher-list or OPENSSL_CONF, because they can change TLS behavior. Attach the record to your upgrade ticket or cryptographic inventory. This step is done when the record is saved in a location your security and platform teams can review.

Which Node.js post-quantum requirements the project has not published

The Node.js sources checked for this page do not settle several requirements that an upgrade depends on, including a dated roadmap, CNSA 2.0 alignment, default hybrid groups, SLH-DSA in Web Crypto and npm signature key types. Each card gives the question to put to the Node.js project or to the distributor that ships your build.

No dated post-quantum roadmap

The Node.js README, CLI documentation and release notes checked for this page contain no dated post-quantum roadmap. Post-quantum support has arrived through OpenSSL-backed features in release lines such as v24 and v26, so planners cannot read a committed schedule from the project's own documents. Ask the project or your distributor for a dated roadmap covering the LTS lines you run, and ask which release line will carry each algorithm.

Node.js release table

No statement on CNSA 2.0

The Node.js sources checked contain no statement about CNSA 2.0, the NSA suite that names ML-KEM-1024 and ML-DSA-87. The crypto module exposes those key types, but the project has not said whether its builds are intended to meet the suite. Ask whether any Node.js build is validated or intended to meet CNSA 2.0, and if you are a federal contractor, ask what your customer requires you to show.

Node.js crypto docs

Hybrid group not stated as default

The TLS documentation uses X25519MLKEM768 as an example group in the ecdhCurve option, but it does not say that a hybrid post-quantum group is the default. The default value 'auto' follows the linked OpenSSL library, which means the offered groups depend on the OpenSSL version in your build. Ask the project which groups a default process offers and negotiates, and confirm the result on your own build with the negotiated group reported by getEphemeralKeyInfo().

Node.js TLS docs

SLH-DSA missing from Web Crypto

The Node.js Web Crypto page lists ML-KEM-768 and ML-DSA-65 as supported algorithms but does not list SLH-DSA, even though the crypto module added SLH-DSA KeyObject, sign and verify support in v24.8.0. Code written against the Web Crypto API therefore cannot assume SLH-DSA is available there. Ask whether SLH-DSA is planned for the Web Crypto API and in which release, and test the algorithm on the node:crypto interface if you need it now.

Node.js Web Crypto docs

npm signature key type narrowed

The npm documentation states that registry signatures are moving from PGP to ECDSA and that the npm CLI currently supports only ecdsa-sha2-nistp256 keys. That is a package-tooling change rather than a Node.js runtime change, but it affects how you verify packages that a Node.js build installs. Ask the npm maintainers when other key types will be supported and how long PGP verification will remain, and check your verification step after each npm upgrade.

npm registry signatures docs

Why the Node.js release line decides which post-quantum APIs exist

Which post-quantum APIs a Node.js application can call depends on the Node.js release line it runs, not only on the OpenSSL library underneath. The APIs arrived in stages. ML-DSA signing appeared in v24.6.0, ML-KEM through crypto.encapsulate() and crypto.decapsulate() appeared in v24.7.0, and SLH-DSA KeyObject, sign and verify support appeared in v24.8.0. The v26.0.0 release changed the default PKCS#8 export of ML-KEM and ML-DSA keys to a seed-only format, so code that exports keys may behave differently on v26 than on v24. The asymmetricKeyType history in the crypto docs records these introduction points, and teams should check it against the version they plan to run.

The release lines differ in what they contain. As of the release table checked on 2026-12-03, v26 (Lithium), v24 (Krypton) and v22 (Jod) are LTS, and v27 is Alpha. Teams should confirm the current status of each line on the Node.js previous releases page before choosing one. A line that predates these APIs does not expose them. This holds regardless of which OpenSSL version the team has installed, because the node:crypto bindings are part of the Node.js build. The facts supplied for this section do not establish whether any of these APIs were backported to older lines, so teams on v22 or any other older line should confirm that directly with the Node.js project before planning around it.

Practically, a team should record the exact Node.js version in its inventory and confirm that version exposes each algorithm it needs, using crypto.getHashes() or the asymmetricKeyType history as a check. Upgrading the OpenSSL library alone does not add the APIs to an older Node.js binary. Teams that link Node.js against an external OpenSSL should also note that the release notes for v22.20.0 say the bundled OpenSSL 3.5.2 does not apply to third-party builds that link to an external library, so the OpenSSL version in their environment still matters for what the TLS and key handling layers do.

Questions engineers ask about Node.js post-quantum requirements

Is Node.js quantum safe?

No product is quantum safe as a blanket statement, and this page does not make that claim for Node.js. What the sources support is narrower: Node.js 24.7.0 added ML-KEM (FIPS 203) through crypto.encapsulate() and crypto.decapsulate(), and ML-DSA (FIPS 204) in crypto.sign() and crypto.verify(), when built against OpenSSL 3.5 or later. Node.js 24.8.0 added SLH-DSA (FIPS 205). Whether a given connection or key uses these depends on the version, the OpenSSL build and the settings your application chooses. Treat the question as one about specific algorithms in specific configurations, and confirm each one in your own environment before recording an answer.

Which Node.js version does a team need for post-quantum algorithms?

The minimum is Node.js 24.7.0 for the ML-KEM and ML-DSA functions in node:crypto, and 24.8.0 for SLH-DSA. The release line matters as much as the number: the LTS lines listed on the previous-releases page checked on 2026-12-03 are v26 (Lithium), v24 (Krypton) and v22 (Jod). Node.js 24.5.0 shipped with OpenSSL 3.5.1, and 22.20.0 bundles OpenSSL 3.5.2 in official builds. Check the Node.js version and the OpenSSL version it reports at runtime, since a third-party build linked to an older external OpenSSL will not have these functions even if its Node.js version number is high enough.

Does upgrading Node.js for post-quantum support cost extra?

The sources do not give any price or effort figures for this upgrade, so budget from your own inventory. The cost drivers are: moving to a release line that carries OpenSSL 3.5 or later, which may mean moving off a line your team already runs; rebuilding or updating container images and base images that pin an older Node.js; regression testing of TLS and signing paths, including the default TLS 1.3 cipher suites and any ecdhCurve settings; and the time to update dependencies that bundle their own cryptography. Ask your platform or distribution team to estimate each of these, and ask for the work to be split into one-time changes and recurring upgrade effort.

What breaks when a team upgrades Node.js for post-quantum algorithms?

The release notes checked do not list breaking changes tied to post-quantum support, so verify against the notes for your exact target version. Areas to test before cutover include: the default TLS minimum of TLSv1.2 and maximum of TLSv1.3, which --tls-min-* and --tls-max-* flags can change for the whole process; the default TLS 1.3 cipher list, which can be replaced with --tls-cipher-list; the ecdhCurve setting, whose default is 'auto', so the group chosen follows the linked OpenSSL; and PKCS#8 export of ML-KEM and ML-DSA keys, which Node.js 26.0.0 changed to default to the seed-only format. Peers that do not accept the new groups will fail to negotiate, so test with real clients.

What should a team ask the Node.js project or its distributor?

Ask for the exact OpenSSL version bundled in the build you run, and whether the build links an external OpenSSL instead. Ask which post-quantum key types and functions are available in that build, and whether tlsSocket.getEphemeralKeyInfo() reports a hybrid group such as X25519MLKEM768 for your connections. Ask whether the default ecdhCurve selection includes a hybrid group in that build, since the documentation does not state this. The Node.js repository, CLI docs and release notes checked for this page contain no statement about CNSA 2.0 or a dated post-quantum roadmap, so ask any distributor for its own written position on timelines and support windows.

Can our team do this upgrade ourselves or do we need outside help?

A team with a current Node.js release line, a working test environment for its TLS and signing paths and someone who owns its container images can usually do the version change internally. Outside help tends to be useful when the inventory is large, when many dependencies bundle their own cryptography, when the environment is air-gapped, or when evidence for an assessment must be written up. DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside a client's own infrastructure, and most engagements are fixed-scope with the scope agreed in writing. To check whether your case fits, book the scoping call and bring your current Node.js versions, OpenSSL details and an inventory of TLS and signing use.

Does enabling FIPS mode in Node.js make it post-quantum ready?

No. The --enable-fips flag with OpenSSL 3 only adds fips=yes to the default property query and does not load or validate a FIPS provider. crypto.getFips() likewise does not establish that a FIPS provider is loaded or validated, so it should not be recorded as evidence of a validated module. The --force-fips flag with strict mode, added in v26.9.0 and requiring OpenSSL 3.4 or later, rejects non-approved operations reported by the OpenSSL FIPS indicator. Whether any of this meets a specific requirement is a question for your assessor, so confirm the validated module and its version separately.

Does Node.js bundle its own cryptography or use the system OpenSSL?

It depends on how the binary was built. Official Node.js builds bundle OpenSSL, and the release notes say the Node.js 22.20.0 bundled OpenSSL 3.5.2 does not affect third-party builds that link to an external OpenSSL. Check the OpenSSL version a running process reports, and whether it matches the version your distribution or container base image ships. Use the --openssl-config flag or OPENSSL_CONF variable only with a configuration you have reviewed, since they change how OpenSSL loads its providers. Record both the Node.js version and the OpenSSL version in your inventory, because an upgrade of one does not guarantee the other.

How DeployOpen helps plan and test a Node.js post-quantum upgrade

DeployOpen works on Node.js post-quantum readiness inside the client's own infrastructure, starting from the build, dependency and TLS settings that decide whether post-quantum algorithms can be used at all. Each engagement is fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Confirm which Node.js release lines and OpenSSL builds the client runs, including whether Node.js is linked to an external OpenSSL.
  • Record which applications call node:crypto or set tls options such as ecdhCurve, sigalgs and the minimum TLS version.
  • Agree in writing which components are in scope, such as npm dependencies, CA trust settings and any FIPS mode requirement.

How we build

  • Build or verify a Node.js binary against a known OpenSSL 3.5 or later, and check the reported OpenSSL version at runtime.
  • Test TLS handshakes with X25519MLKEM768 in ecdhCurve, and confirm the negotiated group through getEphemeralKeyInfo().
  • Check ML-KEM and ML-DSA key generation, encapsulation and signing against the client's own test cases before any rollout.

How we hand over

  • Deliver a written record of the Node.js versions, OpenSSL builds, configuration flags and test results used in the upgrade.
  • Document every changed setting, such as --tls-cipher-list or NODE_OPTIONS, with the reason it was changed and how to roll it back.
  • Hand over test scripts and a retest plan so the client's own engineers can repeat the checks after each Node.js release.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer once the handover is complete.
  • Retainer work can track new Node.js release lines, including the LTS lines and the Alpha line listed on the release table.
  • Confirm with the Node.js project and your vendors which post-quantum features are supported in each release before relying on them.

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.