Vendor: OpenJS Foundation · https://nodejs.org/ · pkg:generic/nodejs · Last reviewed 2026-12-05 · History
Summary
- Official builds bundle OpenSSL, so releases with OpenSSL 3.5 (24.5.0 and later; 22.20.0 and later) offer the hybrid group X25519MLKEM768 in TLS 1.3 by default.1
- Classical groups can be disabled by the program’s author with the
ecdhCurveoption.2 node:cryptohas ML-DSA keys from 24.6.0, ML-KEM from 24.7.0 and SLH-DSA from 24.8.0.3- No Node.js commitment about post-quantum support was found (checked 2026-12-05).
To require the hybrid group, set
ecdhCurve: 'X25519MLKEM768'; peers without it fail the handshake.2
Cryptographic operations
- TLS client and server (
https,fetch,tls): groups come fromecdhCurve, defaulttls.DEFAULT_ECDH_CURVE='auto', which uses OpenSSL’s list; from OpenSSL 3.5.0 it starts with X25519MLKEM768.2 node:crypto: “v24.6.0 Add support for ML-DSA keys”, “v24.7.0 Add support for ML-KEM keys”, “v24.8.0 Add support for SLH-DSA keys”;crypto.encapsulate()andcrypto.decapsulate()since 24.7.0.3- Distribution packages built against the system OpenSSL may differ from the bundled version.
Versions
| Change | Version | Date | Package URL | Source |
|---|---|---|---|---|
| Bundled OpenSSL 3.0 to 3.5 (24 line) | 24.5.0 | 2025-07-31 | pkg:generic/nodejs@24.5.0 |
1 |
| ML-DSA keys, signing and verification | 24.6.0 | 2025-08-14 | pkg:generic/nodejs@24.6.0 |
31 |
ML-KEM keys; crypto.encapsulate(), crypto.decapsulate() |
24.7.0 | 2025-08-27 | pkg:generic/nodejs@24.7.0 |
31 |
| SLH-DSA keys, signing and verification | 24.8.0 | 2025-09-10 | pkg:generic/nodejs@24.8.0 |
31 |
| Bundled OpenSSL 3.0 to 3.5 (22 line) | 22.20.0 | 2025-09-24 | pkg:generic/nodejs@22.20.0 |
1 |
Check a running installation with node -p process.versions.openssl.
Configuration
Enabling PQC
Nothing needed on OpenSSL 3.5 or later unless the program sets ecdhCurve, in which case include the hybrid group:
tls.connect({ host: 'example.com', port: 443, ecdhCurve: 'X25519MLKEM768:X25519' });
Disabling classical algorithms
Set in code, per context.2
https.createServer({ key, cert, ecdhCurve: 'X25519MLKEM768' }, handler);
References
-
Node.js release index, with the bundled OpenSSL version of each release. https://nodejs.org/dist/index.json (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6
-
Node.js documentation, TLS,
tls.createSecureContext()optionecdhCurveandtls.DEFAULT_ECDH_CURVE. https://nodejs.org/api/tls.html (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 -
Node.js documentation, Crypto, asymmetric key types and
crypto.encapsulate(). https://nodejs.org/api/crypto.html (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5