py_webauthn
Verifies ML-DSA passkeys since 3.0.0, but the default registration options still prefer EdDSA and ES256, and ES384 is missing.
- PyPI
webauthn- Version cited
- 3.0.1(25 Sep 2026); 3.0.0 “The PQC release” (29 Jun 2026)
- Downloads
- n/a
Key exchange and encryption
Not affected
No key exchange
Signatures and identity
PQ with action
Verifies ML-DSA; not in defaults
What to do
Upgrade to ≥3.0. Pass supported_pub_key_algs with ML-DSA-65 and ML-DSA-44 first, store each credential’s COSE algorithm, do not require ML-DSA yet, and restrict access to stored public keys.
Since 1 Dec 2026 Nothing found as of 3 Dec 2026.
Details
- ML-DSA verification. 3.0.0 (
v3.0.0), “The PQC release” (29 Jun 2026), addedML_DSA_44 (-48),ML_DSA_65 (-49)andML_DSA_87 (-50)(PR #282, py_webauthn releases). It also “nudges authenticators toward EdDSA key pairs”. - Defaults. In
py_webauthn 3.0.1(25 Sep 2026),default_supported_pub_key_algsingenerate_registration_options.pyis[EDDSA (-8), ECDSA_SHA_256 (-7), RSASSA_PKCS1_v1_5_SHA_256 (-257)]. The ML-DSA IDs are defined but not in the default list, so you must overridesupported_pub_key_algs(PyPI webauthn 3.0.1). - Requirements.
cryptography>=49.0.0andpyOpenSSL>=26.3.0. - Storage. An ML-DSA-65 credential public key is about 1,960 B as a COSE key, against 77 B for ES256; the ASTRA report names WebAuthn COSE key columns among those that overflow ASTRA (storage).
- No ES384.
ECDSA_SHA_384 (-35)is missing fromCOSEAlgorithmIdentifierandget_ec2_sig_alg(), so P-384 WebAuthn fails withUnsupportedAlgorithmAGY. Use python-fido2 if you need a P-384 stopgap. - Docs typo. A docs snippet mentions
ML_DSA_64; the real enum isCOSEAlgorithmIdentifier.ML_DSA_65AGY. - Recommended order (Claude report). ML-DSA-65 (-49) and ML-DSA-44 (-48) first, then RS256 (-257), then ES256 (-7) and EdDSA (-8) as compatibility fallbacks.
The Claude report notes that py_webauthn’s default registration options, like the defaults of certbot, paramiko and pywebpush, converge on P-256 or Ed25519. Relying-party steps and authenticator support are on the passkeys section.
Full discussion: FastAPI and auth
Sources cited on this page 3
- PR #282 github.com
- py_webauthn releases github.com
- PyPI webauthn 3.0.1 pypi.org