PQ Python

pip

pip offers hybrid ML-KEM key exchange only when its interpreter links OpenSSL ≥3.5 and does not verify PEP 740 attestations on install; its hash-checking mode survives any curve break.

PyPI
pip
Version cited
26.3the version the AGY and ASTRA reports inspected
Downloads
n/a

Key exchange and encryption

PQ with action

Hybrid only on OpenSSL ≥3.5

Signatures and identity

Stopgap only

No attestation check; hashes survive

What to do

Run pip on an interpreter linked to OpenSSL ≥3.5 and install with --require-hashes (plus --only-binary :all: where feasible) against independently approved SHA-256 hashes.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

Transport follows the interpreter’s OpenSSL#

pip uses CPython’s ssl module, so it offers X25519MLKEM768 only when the interpreter links OpenSSL ≥3.5 Hybrid on OpenSSL ≥3.5. The Claude report confirmed the hybrid with pip on an interpreter linked to OpenSSL 3.6.3; the AGY report states the same dependency for pip 26.3, poetry 2.5.2 and twine 7.0.0. Which Python builds link OpenSSL ≥3.5 is on the TLS page; uv-managed Pythons do (uv).

pip trusts truststore plus certifi (pip HTTPS docs) and normally verifies HTTPS certificates (pip 26.3 metadata). With truststore on macOS and Windows the OS verifier validates chains, and whether Security.framework and CNG accept ML-DSA chains is unknown.

Attestations are not verified on install#

pip does not automatically verify PEP 740 attestations on an ordinary pip install. Verify them against the expected publisher and repository during promotion (consuming attestations), retain the evidence, then install the same bytes by hash.

pip’s own wheel has provenance. The record for pip-26.3-py3-none-any.whl names pypa/pip, release.yml, environment pypi and a SHA-256 artifact digest. Its short-lived Fulcio leaf key is P-256 and the certificate’s issuer signature is ECDSA-with-SHA384 (why that matters). The ASTRA report inspected this public record; that is not an independent verification of the wheel or evidence of forgery.

Hash-checking mode survives a curve break#

pip hash-checking mode (--require-hashes, plus --only-binary :all: where feasible) relies on SHA-256, which no curve break touches SHA-256 unaffected. It is only as good as the source of the hashes: a digest learned from the same untrusted source as the file is not an independent approval (hash pins).

Response#

None: no pip issue, PR or statement reacts to the advisory as of 3 Dec 2026.

Sources cited on this page 5
  1. pip HTTPS docs pip.pypa.io
  2. pip 26.3 metadata pypi.org
  3. consuming attestations docs.pypi.org
  4. pip-26.3-py3-none-any.whl pypi.org
  5. pip hash-checking mode pip.pypa.io

All sources across the guide