CVE-2026-102273PyJWT accepts public JWK containers as HMAC secrets
PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because HMAC key guard only recognizes top-level public JWK forms and misses container representations. This occurs when an application allows HMAC and asymmetric algorithms and passes a public JWK container as the raw key. As a result, public asymmetric key material is accepted as the HMAC secret. Consequently, an attacker who knows the public key can forge a token with arbitrary authenticated claims. This issue is fixed in version 2.14.0.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | pyjwt | Fixed | 2.13.0-1ubuntu1 | UBUNTU-CVE-2026-102273 |
| Ubuntu 26.04 | pyjwt | Fixed | 2.10.1-4ubuntu1.2 | UBUNTU-CVE-2026-102273 |
| Ubuntu 24.04 | pyjwt | Fixed | 2.7.0-1ubuntu0.3 | UBUNTU-CVE-2026-102273 |
| Ubuntu 22.04 | pyjwt | Fixed | 2.3.0-1ubuntu0.5 | UBUNTU-CVE-2026-102273 |
| Ubuntu 20.04 | pyjwt | Fix pending | 1.7.1-2ubuntu2.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-102273 |
| Ubuntu 18.04 | pyjwt | Fix pending | 1.5.3+ds1-1ubuntu0.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-102273 |
| Ubuntu 16.04 | pyjwt | Fix pending | 1.3.0-1ubuntu0.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-102273 |
| Debian 14 | pyjwt | Fixed | 2.14.0-1 | DEBIAN-CVE-2026-102273 |
| Debian 13 | pyjwt | Fix pending | DEBIAN-CVE-2026-102273 | |
| Red Hat Enterprise Linux 10 | fence-agents | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-aliyun | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-all | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-amt-ws | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-apc | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-apc-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-aws | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-azure-arm | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-bladecenter | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-brocade | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-cisco-mds | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-cisco-ucs | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-common | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-drac5 | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-eaton-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-emerson | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-eps | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-gce | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-heuristics-ping | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-hpblade | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ibm-powervs | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ibm-vpc | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ibmblade | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ifmib | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ilo-moonshot | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ilo-mp | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ilo-ssh | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ilo2 | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-intelmodular | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ipdu | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-ipmilan | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-kdump | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-kubevirt | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-lpar | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-mpath | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-nutanix-ahv | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-openstack | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-redfish | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-rhevm | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-rsa | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-rsb | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-sbd | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-scsi | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-virsh | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-vmware-rest | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-vmware-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-wti | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-agents-zvm | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virt | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virtd | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virtd-cpg | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virtd-libvirt | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virtd-multicast | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virtd-serial | Not affected | ||
| Red Hat Enterprise Linux 10 | fence-virtd-tcp | Not affected | ||
| Red Hat Enterprise Linux 10 | ha-cloud-support | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-aliyun | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-all | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-amt-ws | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-apc | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-apc-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-aws | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-azure-arm | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-bladecenter | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-brocade | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-cisco-mds | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-cisco-ucs | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-common | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-compute | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-drac5 | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-eaton-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-emerson | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-eps | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-gce | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-heuristics-ping | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-hpblade | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibm-powervs | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibm-vpc | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibmblade | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ifmib | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-moonshot | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-mp | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-ssh | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo2 | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-intelmodular | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ipdu | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ipmilan | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-kdump | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-kubevirt | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-lpar | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-mpath | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-nutanix-ahv | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-openstack | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-redfish | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-rhevm | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-rsa | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-rsb | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-sbd | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-scsi | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-virsh | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-vmware-rest | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-vmware-soap | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-wti | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-zvm | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virt | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-cpg | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-libvirt | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-multicast | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-serial | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-tcp | Not affected | ||
| Red Hat Enterprise Linux 9 | ha-cloud-support | Not affected | ||
| Red Hat Enterprise Linux 8 | python-jwt | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-jwt | Not affected | ||
| PyPI library | pyjwt | Fixed | 2.14.0 | PYSEC-2026-4151 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jpadilla pyjwt: affected: >= 2.13.0, < 2.14.0
References
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-w2cx-738m-mc7w
- https://github.com/jpadilla/pyjwt/commit/801cd128528c62d9b23fcd161d1a2e1c17982f95
- https://github.com/jpadilla/pyjwt/releases/tag/2.14.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.