Which Docker images offer post-quantum TLS by default? (December 2026 survey)

On this page
  1. The findings that surprised us
  2. Results
  3. What to do with your base image
  4. How the survey works
  5. Checking your own images in CI

We started 32 official Docker images and had each one connect to a server that accepts only the hybrid group X25519MLKEM768, using the language's default TLS client with nothing configured. 21 of the 32 got through. The pattern is simple once you see it: the OpenSSL that ships in the image decides it for Node.js, Python and the OS tools, and the runtime version decides it for Go and Java. Two images ship OpenSSL 3.5 and still say no, because their system crypto policy leaves ML-KEM off.

This page reports what we measured in December 2026. The survey reruns monthly in GitHub Actions and this page is updated from it.

The findings that surprised us

Python's version barely matters. Every python image we tested, from 3.11 to 3.15, offered the hybrid group, because the official images are now built on Debian trixie and link its OpenSSL 3.5. A Python 3.11 app on python:3.11-slim is post-quantum by default; a Python 3.13 app on a distro with OpenSSL 3.0 is not.

Node.js 20 is the odd one out. Node bundles its own OpenSSL instead of using the system one. Node 22 and 24 bundle OpenSSL 3.5 and offered the hybrid group; Node 20 bundles OpenSSL 3.0 and did not, whatever the base image.

Java 25 has it now, not just Java 27. Hybrid key exchange (JEP 527) arrived in JDK 27, and was backported to JDK 25 in update 25.0.5, with X25519MLKEM768 as the most preferred group. Our 21 and 17 images did not offer it, and we found no backport for either.

OpenSSL 3.5 is not enough on Red Hat 9 and Amazon Linux 2023. redhat/ubi9 ships OpenSSL 3.5.9 and amazonlinux:2023 ships 3.5.8, yet neither offered the hybrid group. Both apply a system-wide crypto policy whose DEFAULT leaves ML-KEM out. redhat/ubi10 ships the same OpenSSL 3.5.9 and did offer it, because RHEL 10.1 changed the default policy to prefer hybrid ML-KEM.

Results

Node.js (tls.connect)

ImageVersionOffers X25519MLKEM768 by default
node:20-slimv20.20.2 / OpenSSL 3.0.19No
node:22-alpinev22.23.5 / OpenSSL 3.5.9Yes
node:22-slimv22.23.5 / OpenSSL 3.5.9Yes
node:24-alpinev24.23.0 / OpenSSL 3.5.9Yes
node:24-slimv24.23.0 / OpenSSL 3.5.9Yes

Python (ssl.create_default_context)

ImageVersionOffers X25519MLKEM768 by default
python:3.11-slim3.11.18 / OpenSSL 3.5.9 29 Sep 2026Yes
python:3.12-slim3.12.16 / OpenSSL 3.5.9 29 Sep 2026Yes
python:3.13-alpine3.13.18 / OpenSSL 3.5.9 29 Sep 2026Yes
python:3.13-slim3.13.18 / OpenSSL 3.5.9 29 Sep 2026Yes
python:3.14-slim3.14.10 / OpenSSL 3.5.9 29 Sep 2026Yes
python:3.15-slim3.15.2 / OpenSSL 3.5.9 29 Sep 2026Yes

Go (crypto/tls)

ImageVersionOffers X25519MLKEM768 by default
golang:1.23go1.23.12No
golang:1.24go1.24.13Yes
golang:1.25go1.25.14Yes
golang:1.26go1.26.11Yes
golang:1.27go1.27.4Yes

Java (SSLContext)

ImageVersionOffers X25519MLKEM768 by default
eclipse-temurin:17-jdk17.0.21.1 2026-11-17No
eclipse-temurin:21-jdk21.0.13.1 2026-11-17 LTSNo
eclipse-temurin:25-jdk25.0.5.1 2026-11-17 LTSYes
eclipse-temurin:27-jdk27.0.1.1 2026-11-17Yes

OS openssl s_client

ImageVersionOffers X25519MLKEM768 by default
alpine:3.20OpenSSL 3.3.7 7 Apr 2026No
alpine:3.21OpenSSL 3.3.7 7 Apr 2026No
alpine:3.22OpenSSL 3.5.10 1 Dec 2026Yes
alpine:3.23OpenSSL 3.5.10 1 Dec 2026Yes
amazonlinux:2023OpenSSL 3.5.8 25 Aug 2026No
debian:bookwormOpenSSL 3.0.22 25 Aug 2026No
debian:trixieOpenSSL 3.5.10 1 Dec 2026Yes
redhat/ubi9OpenSSL 3.5.9 29 Sep 2026No
redhat/ubi10OpenSSL 3.5.9 29 Sep 2026Yes
ubuntu:22.04OpenSSL 3.0.2 15 Mar 2022No
ubuntu:24.04OpenSSL 3.0.13 30 Jan 2024No
ubuntu:26.04OpenSSL 3.5.5 27 Jan 2026Yes

Every image also completed the control handshake against an X25519-only server, so a "No" means the client didn't offer the hybrid group, not that TLS 1.3 was broken.

What to do with your base image

If your image row says No, the fix depends on why:

# RHEL 9.7+ / UBI 9, and Amazon Linux 2023.12+ (update crypto-policies first on AL2023)
update-crypto-policies --set DEFAULT:PQ
update-crypto-policies --show   # should print DEFAULT:PQ

On a full host Red Hat says to reboot after changing the policy. In a container, run it in the Dockerfile so every process starts with the new policy.

How the survey works

Two OpenSSL 3.5 servers run on a private Docker network. One accepts only X25519MLKEM768 with TLS 1.3; the other accepts only X25519 as a control. Each image then connects once to each server with its standard client and default settings:

Turning certificate checks off doesn't change which key-exchange groups a client offers. A connection to the hybrid-only server succeeds only if the client offered X25519MLKEM768, so the test needs no packet capture.

What this does not measure: your application's own TLS settings, which can turn the hybrid group off (an explicit curve list is the usual culprit), and libraries that bring their own TLS stack, such as rustls or BoringSSL builds. It also says nothing about the servers you connect to: both sides need support, and otherwise the handshake quietly falls back to classical key exchange.

The script, image list and raw results (with image digests) are in the pqshift repository under apps/web/scripts/pq-survey and apps/web/content/data.

Checking your own images in CI

pqshift runs the same kind of handshake check against your own services in your CI, and opens a pull request with the fix when a base image, runtime or curve list is holding you back. To check one image by hand today, run its client against a hybrid-only server as described in how to test post-quantum TLS.

FAQ

Which Docker base images support post-quantum TLS by default?

In our December 2026 survey: Debian trixie, Ubuntu 26.04, Alpine 3.22 and 3.23, and UBI 10 offered X25519MLKEM768 from openssl s_client. Node 22 and 24, every Python image from 3.11 to 3.15, Go 1.24 and later, and Temurin 25 and 27 offered it from their default TLS clients.

Why doesn't UBI 9 or Amazon Linux 2023 use ML-KEM even with OpenSSL 3.5?

Their system-wide crypto policy DEFAULT leaves the ML-KEM groups out. On RHEL 9.7+ and AL2023.12+, run update-crypto-policies --set DEFAULT:PQ to turn them on.

Does Java 25 support X25519MLKEM768?

Yes, from JDK 25.0.5. JEP 527 hybrid key exchange was backported to that update, with X25519MLKEM768 as the most preferred group. JDK 21 and 17 did not offer it in our test.

Sources