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

> We tested 32 official Docker images against a hybrid-only server. 21 offered X25519MLKEM768 by default. Results by image, why the rest didn't, and how to fix it.

Source: https://pqshift.dev/learn/post-quantum-tls-docker-images · Published 2026-12-04 · Updated 2026-12-04 · pqshift

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`)

| Image | Version | Offers X25519MLKEM768 by default |
|---|---|---|
| `node:20-slim` | v20.20.2 / OpenSSL 3.0.19 | No |
| `node:22-alpine` | v22.23.5 / OpenSSL 3.5.9 | Yes |
| `node:22-slim` | v22.23.5 / OpenSSL 3.5.9 | Yes |
| `node:24-alpine` | v24.23.0 / OpenSSL 3.5.9 | Yes |
| `node:24-slim` | v24.23.0 / OpenSSL 3.5.9 | Yes |

### Python (`ssl.create_default_context`)

| Image | Version | Offers X25519MLKEM768 by default |
|---|---|---|
| `python:3.11-slim` | 3.11.18 / OpenSSL 3.5.9 29 Sep 2026 | Yes |
| `python:3.12-slim` | 3.12.16 / OpenSSL 3.5.9 29 Sep 2026 | Yes |
| `python:3.13-alpine` | 3.13.18 / OpenSSL 3.5.9 29 Sep 2026 | Yes |
| `python:3.13-slim` | 3.13.18 / OpenSSL 3.5.9 29 Sep 2026 | Yes |
| `python:3.14-slim` | 3.14.10 / OpenSSL 3.5.9 29 Sep 2026 | Yes |
| `python:3.15-slim` | 3.15.2 / OpenSSL 3.5.9 29 Sep 2026 | Yes |

### Go (`crypto/tls`)

| Image | Version | Offers X25519MLKEM768 by default |
|---|---|---|
| `golang:1.23` | go1.23.12 | No |
| `golang:1.24` | go1.24.13 | Yes |
| `golang:1.25` | go1.25.14 | Yes |
| `golang:1.26` | go1.26.11 | Yes |
| `golang:1.27` | go1.27.4 | Yes |

### Java (`SSLContext`)

| Image | Version | Offers X25519MLKEM768 by default |
|---|---|---|
| `eclipse-temurin:17-jdk` | 17.0.21.1 2026-11-17 | No |
| `eclipse-temurin:21-jdk` | 21.0.13.1 2026-11-17 LTS | No |
| `eclipse-temurin:25-jdk` | 25.0.5.1 2026-11-17 LTS | Yes |
| `eclipse-temurin:27-jdk` | 27.0.1.1 2026-11-17 | Yes |

### OS `openssl s_client`

| Image | Version | Offers X25519MLKEM768 by default |
|---|---|---|
| `alpine:3.20` | OpenSSL 3.3.7 7 Apr 2026 | No |
| `alpine:3.21` | OpenSSL 3.3.7 7 Apr 2026 | No |
| `alpine:3.22` | OpenSSL 3.5.10 1 Dec 2026 | Yes |
| `alpine:3.23` | OpenSSL 3.5.10 1 Dec 2026 | Yes |
| `amazonlinux:2023` | OpenSSL 3.5.8 25 Aug 2026 | No |
| `debian:bookworm` | OpenSSL 3.0.22 25 Aug 2026 | No |
| `debian:trixie` | OpenSSL 3.5.10 1 Dec 2026 | Yes |
| `redhat/ubi9` | OpenSSL 3.5.9 29 Sep 2026 | No |
| `redhat/ubi10` | OpenSSL 3.5.9 29 Sep 2026 | Yes |
| `ubuntu:22.04` | OpenSSL 3.0.2 15 Mar 2022 | No |
| `ubuntu:24.04` | OpenSSL 3.0.13 30 Jan 2024 | No |
| `ubuntu:26.04` | OpenSSL 3.5.5 27 Jan 2026 | Yes |
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:

- **Old OpenSSL in the image** (Debian bookworm, Ubuntu 22.04 and 24.04, Alpine 3.21 and earlier): move to a base with OpenSSL 3.5, such as Debian trixie, Ubuntu 26.04 or Alpine 3.22+. Check the result with `openssl version` inside the container.
- **Node.js 20**: upgrade to Node 22 or 24. Changing the base image won't help, because Node uses its bundled OpenSSL. See [the Node.js guide](https://pqshift.dev/learn/post-quantum-tls-nodejs).
- **Go 1.23 or older**: build with Go 1.24 or later. The base image of the *final* stage doesn't matter for Go, since `crypto/tls` is compiled into the binary. See [the Go guide](https://pqshift.dev/learn/post-quantum-tls-go).
- **Java 17 or 21**: move to JDK 25.0.5+ or 27. Neither 17 nor 21 has ML-KEM in the JDK. See [the Java guide](https://pqshift.dev/learn/post-quantum-tls-java).
- **RHEL 9 / UBI 9 (9.7+) and Amazon Linux 2023 (AL2023.12+)**: turn on the PQ subpolicy.

```bash
# 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:

- Node.js: `tls.connect` with certificate checks off
- Python: `ssl.create_default_context()` with certificate checks off
- Go: `tls.Dial` with an empty `tls.Config` apart from `InsecureSkipVerify`
- Java: `SSLContext.getInstance("TLS")` with a trust-all manager, run with the source launcher
- OS images: the distribution's own `openssl s_client`, installed from its package manager if missing

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](https://pqshift.dev/learn/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

- [Oracle JDK 25.0.5 release notes (JDK-8314323, hybrid key exchange for TLS 1.3)](https://www.oracle.com/java/technologies/javase/25-0-5-relnotes.html)
- [Red Hat: post-quantum cryptography in RHEL](https://access.redhat.com/security/pqc/rhel)
- [RHEL 9 security hardening: system-wide cryptographic policies (PQ subpolicy)](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening)
- [Amazon Linux 2023: enabling post-quantum crypto policies](https://docs.aws.amazon.com/linux/al2023/ug/crypto-policies-pq.html)
- [Debian security tracker DSA-6015-1 (OpenSSL versions in bookworm and trixie)](https://security-tracker.debian.org/tracker/DSA-6015-1)
- [Alpine 3.22 openssl package](https://pkgs.alpinelinux.org/package/v3.22/main/x86_64/openssl)
- [RFC 10024: Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3 (Aug 2026)](https://datatracker.ietf.org/doc/rfc10024/)
