{"api_version":"1","generated_at":"2026-05-28T21:06:33+00:00","cve":"CVE-2022-29217","urls":{"html":"https://cve.report/CVE-2022-29217","api":"https://cve.report/api/cve/CVE-2022-29217.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29217","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29217"},"summary":{"title":"CVE-2022-29217","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-05-24 15:15:00","updated_at":"2023-11-07 03:45:00"},"problem_types":["CWE-327"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/","name":"FEDORA-2022-4ae9110f51","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: python-jwt-2.4.0-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/","name":"FEDORA-2022-3cf456dc20","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: python-jwt-2.4.0-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/","name":"FEDORA-2022-4ae9110f51","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: python-jwt-2.4.0-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/","name":"FEDORA-2022-3cf456dc20","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: python-jwt-2.4.0-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jpadilla/pyjwt/releases/tag/2.4.0","name":"https://github.com/jpadilla/pyjwt/releases/tag/2.4.0","refsource":"MISC","tags":[],"title":"Release 2.4.0 · jpadilla/pyjwt · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24","name":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24","refsource":"CONFIRM","tags":[],"title":"Key confusion through non-blocklisted public key formats · Advisory · jpadilla/pyjwt · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc","name":"https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-ffqj-6fqr-9h24 · jpadilla/pyjwt@9c52867 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-29217","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29217","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"29217","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"29217","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"29217","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pyjwt_project","cpe5":"pyjwt","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-29217","qid":"183666","title":"Debian Security Update for pyjwt (CVE-2022-29217)"},{"cve":"CVE-2022-29217","qid":"198867","title":"Ubuntu Security Notification for PyJWT Vulnerability (USN-5526-1)"},{"cve":"CVE-2022-29217","qid":"282767","title":"Fedora Security Update for python (FEDORA-2022-3cf456dc20)"},{"cve":"CVE-2022-29217","qid":"282784","title":"Fedora Security Update for python (FEDORA-2022-4ae9110f51)"},{"cve":"CVE-2022-29217","qid":"354503","title":"Amazon Linux Security Advisory for python-jwt : ALAS2022-2022-241"},{"cve":"CVE-2022-29217","qid":"354571","title":"Amazon Linux Security Advisory for python-jwt : ALAS-2022-241"},{"cve":"CVE-2022-29217","qid":"355238","title":"Amazon Linux Security Advisory for python-jwt : ALAS2023-2023-076"},{"cve":"CVE-2022-29217","qid":"502342","title":"Alpine Linux Security Update for py3-jwt"},{"cve":"CVE-2022-29217","qid":"672113","title":"EulerOS Security Update for python-jwt (EulerOS-SA-2022-2331)"},{"cve":"CVE-2022-29217","qid":"672134","title":"EulerOS Security Update for python-jwt (EulerOS-SA-2022-2302)"},{"cve":"CVE-2022-29217","qid":"672171","title":"EulerOS Security Update for python-jwt (EulerOS-SA-2022-2434)"},{"cve":"CVE-2022-29217","qid":"672176","title":"EulerOS Security Update for python-jwt (EulerOS-SA-2022-2421)"},{"cve":"CVE-2022-29217","qid":"752351","title":"SUSE Enterprise Linux Security Update for python-PyJWT (SUSE-SU-2022:2402-1)"},{"cve":"CVE-2022-29217","qid":"752355","title":"SUSE Enterprise Linux Security Update for python-PyJWT (SUSE-SU-2022:2403-1)"},{"cve":"CVE-2022-29217","qid":"753125","title":"SUSE Enterprise Linux Security Update for python-PyJWT (SUSE-SU-2022:3545-1)"},{"cve":"CVE-2022-29217","qid":"753811","title":"SUSE Enterprise Linux Security Update for python-PyJWT (SUSE-SU-2023:0794-1)"},{"cve":"CVE-2022-29217","qid":"902133","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-jwt (9843)"},{"cve":"CVE-2022-29217","qid":"902140","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-jwt (9852)"},{"cve":"CVE-2022-29217","qid":"902308","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-jwt (9852-1)"},{"cve":"CVE-2022-29217","qid":"902487","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-jwt (9843-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-29217","STATE":"PUBLIC","TITLE":"Key confusion through non-blocklisted public key formats in PyJWT"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"pyjwt","version":{"version_data":[{"version_value":">= 1.5.0, < 2.4.0"}]}}]},"vendor_name":"jpadilla"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-327: Use of a Broken or Risky Cryptographic Algorithm"}]}]},"references":{"reference_data":[{"name":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24","refsource":"CONFIRM","url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24"},{"name":"https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc","refsource":"MISC","url":"https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc"},{"name":"https://github.com/jpadilla/pyjwt/releases/tag/2.4.0","refsource":"MISC","url":"https://github.com/jpadilla/pyjwt/releases/tag/2.4.0"},{"refsource":"FEDORA","name":"FEDORA-2022-3cf456dc20","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/"},{"refsource":"FEDORA","name":"FEDORA-2022-4ae9110f51","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/"}]},"source":{"advisory":"GHSA-ffqj-6fqr-9h24","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-05-24 15:15:00","lastModifiedDate":"2023-11-07 03:45:00","problem_types":["CWE-327"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:*","versionStartIncluding":"1.5.0","versionEndExcluding":"2.4.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}