Skip to content
OpenAdvisories
Critical · 9.1 Public exploit CVE-2022-39227 EUVD-2022-0219GHSA-5p8v-58qm-c7fpPYSEC-2022-259

Python-jwt subject to Authentication Bypass by Spoofing

Published Sep 23, 2022 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

python-jwt is a module for generating and verifying JSON Web Tokens. Versions prior to 3.3.4 are subject to Authentication Bypass by Spoofing, resulting in identity spoofing, session hijacking or authentication bypass. An attacker who obtains a JWT can arbitrarily forge its contents without knowing the secret key. Depending on the application, this may for example enable the attacker to spoof other user's identities, hijack their sessions, or bypass authentication. Users should upgrade to version 3.3.4. There are no known workarounds.

Affected products

VendorProductAffectedFixed
davedoesdev python-jwt < 3.3.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) python-jwt 2.4.0-2 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI python-jwt < 3.3.4 3.3.4 GHSA-5p8v-58qm-c7fp
PyPI python-jwt >= 3.0.0, < 3.3.4 3.3.4 PYSEC-2022-259

References