asyncpg, pymongo, redis-py
These drivers use CPython’s ssl, so they offer X25519MLKEM768 only on OpenSSL 3.5+ interpreters and need an explicit TLS 1.3 minimum to require it.
- PyPI
asyncpg,pymongo,redis,motor- Version cited
- 0.32.0 / 4.20.2 / 8.2.0asyncpg 0.32.0, pymongo 4.20.2, redis-py 8.2.0; motor 3.7.1 deprecated 14 May 2026 (AGY report)
- Downloads
- n/a
Key exchange and encryption
PQ with action
PQ on OpenSSL ≥3.5 interpreters
Signatures and identity
PQ with action
ML-DSA chains need OpenSSL ≥3.5
What to do
Run on an OpenSSL 3.5+ interpreter, pass a context with a TLS 1.3 minimum, and confirm the database server offers the hybrid. Replace motor with pymongo 4.20+ AsyncMongoClient.
Since 1 Dec 2026 None reported as of 3 Dec 2026.
Details
The AGY report covers these drivers; neither other report tested them.
- asyncpg 0.32.0, pymongo 4.20.2 and redis-py 8.2.0 use CPython
ssl. They need OpenSSL 3.5+ plus an explicitTLSv1_3minimum version to require the hybrid. - motor 3.7.1 was deprecated on 14 May 2026. Migrate to pymongo 4.20+
AsyncMongoClient. - The ASTRA report warns not to extrapolate from a requests probe to database connections: measure the actual egress by destination and build.
For PostgreSQL with a bundled OpenSSL, see psycopg.
Full discussion: TLS and interpreters