Has the Python project committed to post-quantum support?
If you track commitments for a Python estate, the short answer as of 2026-12-04 is that the facts reviewed show no post-quantum roadmap or deadline published by the Python project. Post-quantum support in practice arrives through two other controls: the OpenSSL build that the ssl module is linked against, and the settings Python 3.15 exposes for key agreement and signatures. Python 3.15 was released on 9 October 2026 and is the latest stable release described in the 3.15 What's New page. The versions that matter for your record are Python 3.15 and OpenSSL 3.5, which is the OpenSSL line that added ML-KEM, ML-DSA and SLH-DSA support. Security leads and vendor-risk reviewers who must record a dated answer should write it as "no project-level commitment found in the sources reviewed on 2026-12-04" and then list the version and component facts below it, rather than as a statement that Python is or is not post-quantum ready.
The practical boundary is between the language project and the libraries under it. The ssl module documentation says the TLS and certificate algorithms Python offers depend on the OpenSSL build it is linked against, which means your OpenSSL version sets much of what is possible. OpenSSL 3.5.0 changed the default TLS groups to prefer hybrid post-quantum key exchange, and the CPython tracker for the August 2026 update shows the Windows builds and macOS installers moving to OpenSSL 3.5.8 on the 3.14 and 3.15 branches, with a later pull request moving the 3.15 macOS installer to OpenSSL 3.5.9. Python 3.15 adds SSLContext.set_groups() for key-agreement groups and get_groups(), which the What's New page says requires OpenSSL 3.5 or later. Confirm the OpenSSL version in each interpreter you run, because a python.org installer, a distribution package and a container image can each link a different one.
Two items sit outside the ssl module and need their own record. First, the cryptography package ships its own bundled OpenSSL in its wheels, so a pip-installed cryptography may not use the OpenSSL that ssl uses; its 51.0.0 changelog entry lists bundled OpenSSL 4.1.1. Second, the Python 3.14 and 3.15 release artifacts are verified with Sigstore signatures under PEP 761, which deprecates PGP signatures, so your verification step should check the .sigstore file rather than a PGP signature. The sources reviewed do not state a post-quantum timeline for either project. Ask the Python release team and the cryptography maintainers directly, and record the date and the answer you receive.
Which Python version, OpenSSL build and component each notice applies to
This table lists each Python version, OpenSSL requirement, packaged build and cryptography component named in the checked sources, with its source and check date. Read each row against the component you run, because the ssl module, hashlib and the cryptography package each link a different OpenSSL. The main takeaway is that the Python 3.15 group controls and the bundled OpenSSL versions depend on which build is installed.
| Version or component | What the checked sources say | Source and checked date |
|---|---|---|
| Python 3.15 | Released 9 October 2026 and described as the latest stable release. Adds the set_groups(), get_groups() and set_ciphersuites() controls. | Python 3.15 What's New, checked 2026-12-03 |
| Python 3.10 and later ssl module | Requires OpenSSL 1.1.1 or newer (PEP 644). The TLS and certificate algorithms offered depend on the OpenSSL build linked to Python. | Python ssl docs, checked 2026-12-03; PEP 644 |
| Python 3.15 get_groups() and SSLSocket.group() | get_groups() requires OpenSSL 3.5 or later. SSLSocket.group() requires OpenSSL 3.2 or later. | Python 3.15 What's New, checked 2026-12-03 |
| OpenSSL 3.5.0 default groups | Added ML-KEM, ML-DSA and SLH-DSA. Default TLS groups prefer hybrid X25519MLKEM768, with X25519MLKEM768 and X25519 as default key shares. | OpenSSL 3.5 NEWS, checked 2026-12-03 |
| Python 3.14 and 3.15 Windows and macOS installers | Moving to OpenSSL 3.5.8 on the 3.14 and 3.15 branches. The 3.15 macOS installer was updated to OpenSSL 3.5.9 by a pull request merged 2026-09-30. | CPython issue 156369 and PR 158460, checked 2026-12-03 |
| PEP 644 SHA-3 requirement | SHA-3 and SHAKE require OpenSSL because the built-in SHA-3 implementation was removed. hashlib falls back to HACL* for MD5, SHA1, SHA2 and SHA3 only from Python 3.12. | PEP 644; Python hashlib docs, checked 2026-12-03 |
| cryptography 51.0.0 bundled OpenSSL | Ships statically linked wheels with its own bundled OpenSSL 4.1.1, separate from the OpenSSL the ssl module uses. Released 2026-12-01. | cryptography changelog and installation docs, checked 2026-12-03 |
| Python 3.15 signature algorithm controls | set_client_sigalgs(), set_server_sigalgs(), get_sigalgs() and SSLSocket sigalg inspection were added in 3.15. Confirm the OpenSSL build supports the signature algorithms you set. | Python 3.15 What's New, checked 2026-12-03 |
Which parts of Python the post-quantum question touches
Python's post-quantum exposure does not sit in one place. Key agreement and certificate signatures come from the OpenSSL build behind the ssl module, while the cryptography package carries its own bundled OpenSSL, and hashlib and release signing each raise separate questions. Check each item in your own build, because the answer depends on what your interpreter and your installed packages actually link against.
The ssl module and OpenSSL linkage
The ssl module requires OpenSSL 1.1.1 or newer since Python 3.10 (PEP 644), so the TLS key agreement and certificate algorithms Python offers depend on the OpenSSL build it is linked against, not on Python itself. Key agreement uses ECDH curves, and certificate signatures use RSA or ECDSA, both chosen by OpenSSL during the handshake. Before Python 3.15, the main pre-existing control for key agreement was set_ecdh_curve(), which does not apply to client sockets. Check which OpenSSL version your interpreter reports, and confirm whether your build links the system library or a bundled copy. Confirm the linked OpenSSL version before assuming any algorithm is available.
Python ssl docsThe cryptography package and its bundled OpenSSL
A pip-installed cryptography package ships statically linked wheels for macOS, Windows and Linux, so it uses its own bundled OpenSSL rather than the one the ssl module uses. This means the two can differ in version and in supported algorithms within the same Python environment. The cryptography changelog lists bundled OpenSSL 4.1.1 in cryptography 51.0.0, released 2026-12-01. Check the installed cryptography version and its backend separately from the ssl module, and do not treat a result from one as a result for the other. The ssl module and the cryptography package can disagree.
cryptography installation docshashlib with OpenSSL and HACL* fallback
hashlib uses OpenSSL where it is available, and since Python 3.12 it falls back to a HACL* implementation for MD5, SHA1, SHA2 or SHA3 when the linked OpenSSL does not provide them. The hashlib documentation also notes that some algorithms may be missing or blocked in a FIPS-compliant build or when OpenSSL FIPS mode excludes them. Hashes matter less to the public-key question than key exchange and signatures, but a build that drops an algorithm changes what your code can call. Test the hash functions your application relies on in the exact interpreter and FIPS configuration you deploy. Behavior can differ between an OpenSSL build and a FIPS build.
Python hashlib docsRelease artifact signing through Sigstore
PEP 761 deprecates PGP signatures for CPython releases starting with 3.14 and makes Sigstore the only signing method for new release series, so 3.14 and 3.15 artifacts are verified with Sigstore signatures. The Python 3.15.1 release page lists a .sigstore file beside each download, dated October 21, 2026. This affects how you verify the interpreter you install, not how it encrypts traffic. Your release process should verify the Sigstore signature of the interpreter you run, and record which artifact and signature you verified. Verify the .sigstore file for each interpreter you deploy.
PEP 761 textHow the answer changes by Python build and deployment
Interpreters from a Linux distribution or a python.org source build link the ssl module to the system OpenSSL, so the distribution's OpenSSL version sets which TLS algorithms, groups and key agreement options Python can use. The Python ssl documentation says the module requires OpenSSL 1.1.1 or newer since Python 3.10, which is a floor, not a statement of what the build supports. Post-quantum key agreement through set_groups() in Python 3.15 also needs a newer OpenSSL, with the What's New page stating that get_groups() requires OpenSSL 3.5 or later and SSLSocket.group() requires OpenSSL 3.2 or later.
- OpenSSL version: run
python3 -c "import ssl; print(ssl.OPENSSL_VERSION)"to see the exact linked version. - Distribution patching: distributions may backport fixes without changing the upstream version string, so confirm with the distribution's security advisories.
- Group support: check
ssl.SSLContext().get_groups()on Python 3.15 to see whether post-quantum groups are listed. - Algorithm gaps: SHA-3 and SHAKE require OpenSSL because the built-in implementation was removed under PEP 644.
- Shared system library: an OpenSSL upgrade from the operating system changes the ssl module without any change to Python itself.
Confirm the linked OpenSSL version, its distributor's support status and whether the group list includes the groups you need.
The python.org Windows and macOS installers bundle their own OpenSSL, so the version in those installers, not the operating system's, governs the ssl module. The CPython tracker for the August 2026 OpenSSL update shows the Windows builds and macOS installer moving to OpenSSL 3.5.8 on the 3.14 and 3.15 branches, and a pull request merged on 2026-09-30 updated the 3.15 macOS installer to OpenSSL 3.5.9. Those tracker entries describe planned or merged changes, so the version actually shipped in a given installer must be read from the interpreter itself.
- Read the bundled version: run
ssl.OPENSSL_VERSIONin the installed interpreter instead of trusting the installer name. - Branch differences: the 3.14 and 3.15 branches may carry different OpenSSL versions at the same date, so check the branch you run.
- Updates: installing a newer Python patch release is the path that replaces the bundled OpenSSL, so track patch releases.
- Signature verification: PEP 761 makes Sigstore the signing method for 3.14 and 3.15 release artifacts, so verify the .sigstore file beside each download, as the 3.15.1 release page lists.
- Operating system stack: Windows CNG and macOS system components do not change the bundled OpenSSL the ssl module uses.
Confirm the bundled OpenSSL string on each endpoint and whether your patch release level picks up the tracker changes.
A self-compiled interpreter uses whichever OpenSSL the build was pointed at, which may be a custom or FIPS-configured build rather than the system library. The ssl module and any extension modules then follow that OpenSSL, so the build configuration becomes the authoritative record of the versions in use. The hashlib documentation notes that algorithms may be missing or blocked in a FIPS-compliant build or when OpenSSL FIPS mode excludes them, which can change what the interpreter offers without any code change.
- Build record: keep the OpenSSL path, version and configure flags used to compile the interpreter with the build artifact.
- Build-time options: confirm which OpenSSL headers and libraries the configure step found, because a mismatch can silently link an older library.
- FIPS mode: check whether FIPS mode is enabled and which algorithms it excludes, using hashlib and ssl feature checks.
- Fallback behavior: since Python 3.12 hashlib can fall back to a HACL* implementation for MD5, SHA1, SHA2 or SHA3 that the linked OpenSSL does not provide, so verify which implementation a given call uses.
- Rebuild trigger: an OpenSSL security update requires rebuilding or relinking the interpreter, since nothing upgrades it automatically.
Confirm the OpenSSL version and FIPS status recorded at build time against what the running interpreter reports.
The cryptography package ships statically linked wheels for macOS, Windows and Linux, so its operations use the OpenSSL bundled inside the wheel, not the one the ssl module uses. This means one Python process can run two different OpenSSL versions: one for TLS through ssl, and another for X.509, RSA and ML-KEM or ML-DSA operations through cryptography. The cryptography changelog lists bundled OpenSSL 4.1.1 in cryptography 51.0.0, released 2026-12-01, but that is the release notes entry for the wheel, not a statement about the ssl module.
- Two OpenSSL builds: cryptography and ssl can disagree on what algorithms and patches are present.
- Wheel version: the post-quantum classes depend on the wheel version, as ML-KEM and ML-DSA became available in wheels from cryptography 48.0.0 with OpenSSL 3.5.0 or later.
- X.509 behavior: from cryptography 50.0.0, X.509 verification accepts ML-DSA-44, ML-DSA-65 and ML-DSA-87 by default.
- Key size floor: RSA keys of 1024 bits and below are considered breakable, and the docs recommend 2048 or 4096 bits for new keys.
- Pinning: pinned versions in a requirements file determine the bundled OpenSSL, so review them with each release.
Confirm the cryptography version and its bundled OpenSSL with the running interpreter, and check the ssl version separately.
How Python's ssl module, hashlib and cryptography reach OpenSSL
The diagram starts at a Python process and splits into three paths. The ssl module and hashlib both call the OpenSSL build linked into the interpreter, although hashlib can fall back to its own HACL* code for MD5, SHA1, SHA2 or SHA3 that the linked OpenSSL lacks since Python 3.12. A pip-installed cryptography wheel carries its own bundled OpenSSL, so it does not follow the interpreter's version. When you check readiness, record the OpenSSL version for each path separately, and confirm the build's version with the vendor or in the environment.
Which OpenSSL build governs each Python path.
What to check now to record an accurate Python answer
This sequence establishes which Python build, which OpenSSL library and which bundled cryptography version apply to your environment, so the answer you record reflects what is actually running. Each step produces a value you can write into your inventory with the date you checked it.
Confirm the Python interpreter version
Run
python3 --versionon each host, virtual environment or container that runs application code, and record the output. Python 3.15 is the latest stable release, released on 9 October 2026 according to the 3.15 What's New page, so note whether each interpreter is 3.15, is on the 3.14 line, or is an earlier line still in use. Older lines may receive fewer updates, so confirm the support status of any line you find on the project's release schedule. This step is done when every interpreter in scope has a recorded version string.Report the linked OpenSSL version
The ssl module depends on the OpenSSL build it is linked against, so the TLS and certificate algorithms Python offers come from that library. Run
python3 -c "import ssl; print(ssl.OPENSSL_VERSION)"in each interpreter and record the full string, which includes the OpenSSL version number. Run it inside the same virtual environment or container the application uses, because those may link a different OpenSSL from the system copy. This step is done when each interpreter reports one OpenSSL version string next to its Python version.Identify how each build was installed
Determine whether each interpreter came from a python.org installer, a Linux distribution package, a container base image, or a self-compiled build. The source decides who ships OpenSSL updates for that interpreter: a python.org installer carries its own OpenSSL, while a distribution package uses the system library and is patched by the distribution. For self-compiled builds, the team that compiled it owns the OpenSSL version. Check the installation path with
which python3and the package manager's query command where applicable. This step is done when each interpreter is labelled with its installation source and the party responsible for updates.Check the bundled OpenSSL in cryptography
The cryptography package does not necessarily use the same OpenSSL as the ssl module. Its installation documentation states that the statically linked wheels for macOS, Windows and Linux bundle their own OpenSSL, so a pip-installed cryptography reports a different library from the one Python links. Run
pip show cryptographyto get the installed version, then compare it with the cryptography changelog, which lists the bundled OpenSSL for each release. For example, the changelog lists bundled OpenSSL 4.1.1 in cryptography 51.0.0, released 2026-12-01. This step is done when you have recorded both the cryptography version and its bundled OpenSSL version for each environment.Record the checked date and sources
Write down the date you performed each check, the exact commands and their output, and the URLs you relied on: the Python ssl documentation, the 3.15 What's New page, the cryptography changelog and installation documentation, and the OpenSSL release notes. Vendor and project statements can change, so the date is part of the answer. Note any environment you could not check, such as a container image you did not inspect, so the gap is visible to reviewers. This step is done when the record names the date, the interpreter, the OpenSSL version, the cryptography version and the sources for every environment in scope.
What the Python project has not published, and what to ask
The sources checked do not give Python a post-quantum roadmap, a deadline or a statement on hybrid defaults. The four items below are the gaps that matter most for planning, with the question to put to the project or package maintainers and where to look first.
No published post-quantum roadmap or deadline
The Python release documentation and the sources checked for this page do not contain a post-quantum roadmap, a target date for post-quantum support in the standard library, or a commitment to a transition timeline. The 3.15 What's New page covers the signature and group controls added in that release, but it does not frame them as a migration plan. Ask the Python project, or your distribution's maintainers, whether a roadmap or deadline exists and where it is published. Check the Python Discourse, the PEP index and the 3.16 planning pages for any later statement.
3.15 What's NewNo statement on hybrid defaults in ssl
The ssl module gained set_groups() and get_groups() in Python 3.15, and the sources checked do not state whether hybrid key exchange groups will be enabled by default in ssl or in any later release. Whether a hybrid group is offered depends on the OpenSSL build linked into Python, and the documentation does not say which default group list a given build will use. Ask the project whether a default change is planned, and confirm the group list your own Python build reports through get_groups() before you rely on any default.
Python ssl docsSLH-DSA and X25519MLKEM768 not in cryptography 51.0.0
The cryptography 51.0.0 changelog entry, dated 2026-12-01, lists composite ML-DSA-44 with Ed25519 key classes and no SLH-DSA or X25519MLKEM768 entries. Earlier releases added ML-KEM and ML-DSA support, so the absence in this entry does not show whether SLH-DSA or the X25519MLKEM768 hybrid is planned, already present or excluded. Ask the maintainers of the cryptography package for the status of both, and check the changelog and the installed module list in your own environment, since the bundled OpenSSL decides what is actually available.
cryptography changelogcreate_default_context() may tighten without notice
The ssl documentation warns that the default protocol, option and cipher settings of create_default_context() may change to more restrictive values at any time without prior deprecation. Code that depends on today's defaults, such as TLS 1.2 minimum or the default cipher list, could fail after an upgrade with no warning in the release notes. Ask the project whether it will announce such changes in advance, and pin the minimum_version, cipher and verify settings explicitly in production code so that a tightened default does not change your behavior silently.
Python ssl docsWhat can go wrong when Python negotiates key exchange
Python's key exchange behavior is not fixed by the Python version alone. The ssl module depends on the OpenSSL build it is linked against, and the default TLS supported groups come from that library. OpenSSL 3.5.0 (8 April 2025) changed the default TLS supported groups to include and prefer hybrid post-quantum KEM groups, and changed the default key shares to offer X25519MLKEM768 and X25519. A Python build linked against OpenSSL 3.5 or later can therefore negotiate differently from one linked against an older OpenSSL, even when the Python source is identical. A rebuild, a switch to a different OpenSSL, or a change in a platform installer can shift which groups a connection offers. Before and after any rebuild, confirm the linked OpenSSL version and test the groups actually offered and selected.
The ssl documentation also limits what a Python developer can rely on. set_ecdh_curve() is the pre-3.15 control for key agreement, but it does not apply to client sockets, so a setting made to restrict or pin the curve on a client context will not change what that client offers. The documentation warns that the default protocol, option and cipher settings of create_default_context() may change to more restrictive values at any time without prior deprecation. A connection that works today may fail after an upgrade if a default is tightened, so pin any setting your peers depend on explicitly and test after each Python or OpenSSL update.
Key exchange in Python may also come from a different library than the ssl module. A cryptography package installed with pip ships statically linked wheels with its own bundled OpenSSL. The cryptography 51.0.0 changelog entry (1 December 2026) lists bundled OpenSSL 4.1.1, which is not necessarily the OpenSSL that the ssl module uses. Code that uses cryptography for keys or signatures and the ssl module for connections may therefore see two different algorithm sets. Ask the team to record the OpenSSL version used by each component, check it with the libraries' own version reporting, and test each path separately instead of assuming they match.
Questions engineers and vendor-risk reviewers ask about Python's post-quantum status
Is Python quantum safe?
Python does not carry a quantum-safe label, and this page makes no compliance claim for it. What the sources support is narrower: Python 3.15 added SSLContext.set_groups(), SSLContext.get_groups() and SSLSocket.group(), which let code choose and inspect key agreement groups, including post-quantum groups, when the linked OpenSSL provides them. Whether a given connection uses a post-quantum group depends on the OpenSSL build, the peer, and the settings in place. Confirm that with a test connection in your own environment rather than relying on the language version alone. The Python hashlib documentation also notes that some algorithms may be missing or blocked in a FIPS-compliant build, so check the build you run.
Which Python version do I need for post-quantum key agreement settings?
The Python 3.15 What's New page says SSLContext.get_groups() requires OpenSSL 3.5 or later, and SSLSocket.group() requires OpenSSL 3.2 or later. The set_groups() method is documented in the 3.15 ssl docs, so a 3.15 build is the baseline for the group settings described here. Because the ssl module links against the system or bundled OpenSSL, the OpenSSL version matters as much as the Python version. OpenSSL 3.5.0 added ML-KEM, ML-DSA and SLH-DSA support and changed the default TLS key shares to offer X25519MLKEM768 and X25519. Check both versions with python3 -c "import ssl; print(ssl.OPENSSL_VERSION)" on each host.
Does moving Python to post-quantum settings cost extra?
The sources do not give a cost figure for this, so treat any number as something to obtain from your own quote. The costs depend on the build and the support contract. If you use the python.org installers or a distribution, the OpenSSL version comes from that release, and you pay for upgrades only through your normal patch cycle. Internal effort covers testing peers, updating pinned dependencies and reviewing the cryptography package, which ships its own bundled OpenSSL and so may need its own upgrade. Ask any vendor or support provider to price the upgrade separately from ongoing support, and to say which OpenSSL build they ship.
What breaks when I change Python's TLS key agreement settings?
Changing key agreement groups can break connections with older clients, peers and middleboxes that do not offer the groups you enable. Restricting the group list can also prevent a handshake from completing if no common group exists. The risks are covered in detail in the risks section of this page, so read that section before changing settings in production. Test against every peer you connect to, including load balancers and inspection devices in the path, and keep a rollback setting ready.
What should I ask the Python project or my vendor about post-quantum plans?
Ask the Python project and any distribution vendor which OpenSSL version their builds link against, and whether that version offers the groups you need. Ask which Python releases will receive OpenSSL updates, and how quickly they follow OpenSSL security releases. The CPython tracker shows the August 2026 OpenSSL update moving the Windows builds and macOS installer to OpenSSL 3.5.8 on the 3.14 and 3.15 branches, and a later change moved the 3.15 macOS installer to OpenSSL 3.5.9. Ask whether the releases you use include those updates. Also ask how changes to default ssl settings will be announced, since the ssl docs warn that default protocol, options and cipher settings may become more restrictive at any time without prior deprecation.
Can my team do the Python post-quantum work internally, or do we need outside help?
Many teams can do the basic work internally: inventory where Python uses TLS, confirm the Python and OpenSSL versions on each host, and run test connections against each peer. The work becomes harder when a service must be reviewed by an assessor, when many services share pinned dependencies, or when the peers are outside your control. DeployOpen helps with security testing, platform implementation and compliance readiness, including preparing evidence for assessments. It does not issue audit reports or certifications. An internal team that finds the inventory and peer testing too large can scope that work in writing with an outside provider before starting.
Where do I confirm the `cryptography` package's post-quantum support?
The cryptography package is separate from the ssl module. A pip-installed cryptography uses its own bundled OpenSSL rather than the one ssl uses, so the two can differ. Its changelog says ML-KEM and ML-DSA became available in wheels in version 48.0.0 when OpenSSL 3.5.0 or later is used, and version 51.0.0 bundles OpenSSL 4.1.1. The changelog entry for 51.0.0 mentions composite ML-DSA-44 with Ed25519 keys, but the entries read did not mention SLH-DSA or X25519MLKEM768. Check the version you install with pip show cryptography and read its changelog for the algorithms you need.
How DeployOpen helps plan and document Python post-quantum readiness
DeployOpen helps teams read what the Python project has committed to, and how those commitments apply to the Python builds and libraries in their own environment. We turn the project's notices and release guidance into a dated, sourced record that security leads and vendor-risk reviewers can check.
How we scope
- We confirm which Python versions and distributions your systems run, since the project notices apply to specific release lines.
- We agree in writing which project notices, release pages and deprecation statements the review will cover and how each will be dated.
- Engagements are fixed-scope, so the list of Python components, sources and deliverables is settled before any review work starts.
How we build
- We map each Python release line in use to the OpenSSL build it links against, because the ssl module's algorithm support depends on that build.
- We check the Python 3.15 What's New page and the ssl documentation for the group and signature controls that the project has described, and record exactly which version each one applies to.
- We check whether the cryptography packages your applications install bundle their own OpenSSL, since that build can differ from the one the ssl module uses.
How we hand over
- You receive a dated record of each project notice and deprecation statement, with its source link and the Python version it covers.
- The record separates what the project has documented from what has not been stated, so reviewers can see which points still need vendor confirmation.
- We list the items to confirm with the Python project, your distribution or your package maintainers, and the date each was last checked.
How we support
- Ongoing support is available as a retainer, so the record can be re-checked when the Python project publishes new release notes or notices.
- When a new Python release or OpenSSL update changes a documented point, we update the record and note the date of the change.
- Continuous review fits teams whose audit or vendor-risk cycle needs the roadmap evidence kept current between assessments.

