PQ Python

poetry, twine

poetry and twine use CPython’s ssl, so they negotiate hybrid key exchange only on interpreters linked to OpenSSL ≥3.5; upload tokens sent from older clients may be harvested.

PyPI
poetry, twine
Version cited
poetry 2.5.2, twine 7.0.0poetry 2.5.2 and twine 7.0.0, per the AGY report; pdm, hatch and pipx are not covered by the reports
Downloads
n/a

Key exchange and encryption

PQ with action

Hybrid only on OpenSSL ≥3.5

Signatures and identity

Unknown

Not assessed in the reports

What to do

Run them on an interpreter linked to OpenSSL ≥3.5; rotate long-lived pypi- tokens used from older clients and publish with Trusted Publishing.

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

Details

Transport follows the interpreter’s OpenSSL#

poetry 2.5.2 and twine 7.0.0 depend on CPython’s ssl module, so they negotiate X25519MLKEM768 only when the interpreter links OpenSSL ≥3.5 AGY Hybrid on OpenSSL ≥3.5. Which interpreters qualify is on the TLS page; uv-managed Pythons do (uv).

Upload credentials are the exposure#

Long-lived pypi- API tokens sent to upload.pypi.org from clients without ML-KEM (OpenSSL <3.5 CI images and distro Pythons), or before Fastly’s ML-KEM rollout on PyPI, could be harvested and decrypted if X25519 or P-256 ECDH falls. Rotate them and move to Trusted Publishing, whose 15-minute Macaroon tokens are minted from RS256 OIDC tokens (rotation, Trusted Publishing).

Not covered#

The reports do not mention pdm, hatch or pipx, and they do not assess the signing or lockfile side of poetry or twine.