CVEfocus › CVE database › CVE-2022-29217

CVE-2022-29217Key confusion through non-blocklisted public key formats in PyJWT

CVSS 7.4 HighEPSS 1.4% (higher than 72% of CVEs)Published 2022-05-24Updated 2025-04-23Assigner: GitHub_M

PyJWT is a Python implementation of RFC 7519. PyJWT supports multiple different JWT signing algorithms. With JWT, an attacker submitting the JWT token can choose the used signing algorithm. The PyJWT library requires that the application chooses what algorithms are supported. The application can specify `jwt.algorithms.get_default_algorithms()` to get support for all algorithms, or specify a single algorithm. The issue is not that big as `algorithms=jwt.algorithms.get_default_algorithms()` has to be used. Users should upgrade to v2.4.0 to receive a patch for this issue. As a workaround, always be explicit with the algorithms that are accepted and expected when decoding.

CWE-327

What to do

Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

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

16Fixed
59Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04pyjwtFixed2.3.0-1ubuntu0.1UBUNTU-CVE-2022-29217
Ubuntu 20.04pyjwtFixed1.7.1-2ubuntu2.1UBUNTU-CVE-2022-29217
Ubuntu 18.04pyjwtFixed1.5.3+ds1-1ubuntu0.1UBUNTU-CVE-2022-29217
Debian 14pyjwtFixed2.4.0-1DEBIAN-CVE-2022-29217
Debian 13pyjwtFixed2.4.0-1DEBIAN-CVE-2022-29217
Debian 12pyjwtFixed2.4.0-1DEBIAN-CVE-2022-29217
Red Hat Enterprise Linux 9fence-agentsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-aliyunWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-allWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-amt-wsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-apcWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-apc-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-awsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-azure-armWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-bladecenterWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-brocadeWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-cisco-mdsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-cisco-ucsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-commonWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-computeWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-drac5Will not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-eaton-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-emersonWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-epsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-gceWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-heuristics-pingWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-hpbladeWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ibm-powervsWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ibm-vpcWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ibmbladeWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ifmibWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ilo-moonshotWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ilo-mpWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ilo-sshWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ilo2Will not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-intelmodularWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ipduWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-ipmilanWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-kdumpWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-kubevirtWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-lparWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-mpathWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-nutanix-ahvWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-openstackWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-redfishWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-rhevmWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-rsaWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-rsbWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-sbdWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-scsiWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-virshWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-vmware-restWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-vmware-soapWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-wtiWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-agents-zvmWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtdWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtd-cpgWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtd-libvirtWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtd-multicastWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtd-serialWill not fix
Will not fix
Red Hat Enterprise Linux 9fence-virtd-tcpWill not fix
Will not fix
Red Hat Enterprise Linux 9ha-cloud-supportWill not fix
Will not fix
Red Hat Enterprise Linux 9python-oauthlibNot affected
Red Hat Enterprise Linux 9python3-oauthlibNot affected
Red Hat Enterprise Linux 8python-jwtWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-jwtWill not fix
Will not fix
Red Hat Enterprise Linux 7python-adalNot affected
Red Hat Enterprise Linux 7python-jwtNot affected
Alpine Linux 3.24py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.23py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.22py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.21py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.20py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.19py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.18py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.17py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
Alpine Linux 3.16py3-jwtFixed2.4.0-r0ALPINE-CVE-2022-29217
PyPI librarypyjwtFixed2.4.0GHSA-ffqj-6fqr-9h24

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.

Vendor advisories:

References

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.