Live threats

All CVEs / Python-jwt Project

CVE-2022-39227Python-jwt Project Python-jwt

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
4.3%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Sep 23, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-290
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-jwt.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI python-jwt < 3.3.4 3.3.4 pip install "python-jwt>=3.3.4"
PyPI python-jwt ≥ 3.0.0 < 3.3.4 3.3.4 pip install "python-jwt>=3.3.4"

Per OSV / GitHub Advisories (GHSA-5p8v-58qm-c7fp, PYSEC-2022-259). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
python-jwt_projectpython-jwt≥ 3.0.0 < 3.3.4

Official sources

References

Links published by the sources. Open them with care.