pywebpush, py-vapid
Web Push is hard-wired to P-256 for both VAPID signatures and payload encryption, and no successor scheme exists.
- PyPI
pywebpush,py-vapid- Version cited
- 2.5.0pywebpush 2.5.0; py-vapid 1.9.6
- Downloads
- 14.9M (pywebpush); 15.5M (py-vapid)/mo
Key exchange and encryption
No path yet
P-256 ECDH payloads, no successor
Signatures and identity
No path yet
VAPID ES256 hard-wired
What to do
Stop sending sensitive content in push payloads: send a tickle carrying only an ID and fetch the content over PQ-hybrid TLS.
Since 1 Dec 2026 Nothing found as of 3 Dec 2026.
Details
Hard-wired P-256, in two places:
- VAPID (RFC 8292) signs with ES256. py-vapid 1.9.6 generates
ec.SECP256R1()keys and signs withECDSA(SHA256)(py_vapid). - RFC 8291 payload encryption uses ephemeral P-256 ECDH plus a 16-byte auth secret, then
aes128gcm. pywebpush 2.5.0 implements this (pywebpush source).
No PQ path is possible until browsers and the IETF define a new scheme; no IETF replacement draft or browser plan was found.
- Forging VAPID is low-impact: without the subscription’s
authsecret, the browser will not display attacker payloads. - The real exposure is payload confidentiality. Push services (FCM, Mozilla autopush, Apple) relay the ciphertext, so anyone recording it could decrypt it later if P-256 ECDH falls.
- Downloads in 30 days: pywebpush 14,884,650; py-vapid 15,506,782.
See Web Push.
Full discussion: FastAPI and auth
Sources cited on this page 2
- py_vapid github.com
- pywebpush source github.com