Python-jwt subject to Authentication Bypass by Spoofing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-290.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| davedoesdev | python-jwt | before 3.3.4 | 3.3.4 | Patch available | CNA |
| — | python-jwt (PyPI) | before 3.3.4 | 3.3.4 | Patch available | GHSA-5p8v-58qm-c7fp |
- python-jwt Vendordavedoesdev Affected before 3.3.4 Fixed in 3.3.4 Patch available CNA
- python-jwt (PyPI) Vendor— Affected before 3.3.4 Fixed in 3.3.4 Patch available GHSA-5p8v-58qm-c7fp
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python-jwt_project:python-jwt:*:*:*:*:*:*:*:* | 3.0.0 to before 3.3.4 | Vulnerable | Python-jwt Project |
- cpe:2.3:a:python-jwt_project:python-jwt:*:*:*:*:*:*:*:* Versions 3.0.0 to before 3.3.4 Vulnerable ·Python-jwt Project
Remediation
- Fix · CNA python-jwt (davedoesdev) Fixed in 3.3.4
- Fix · GHSA-5p8v-58qm-c7fp python-jwt (PyPI) Fixed in 3.3.4 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ceph Storage 4 | Affected | No fix yet |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix yet |
Not affected: 2 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39227
- 2026-10-03 Alias added: GHSA-5p8v-58qm-c7fp
References
Patch 2
Advisory 2
Sources
- CVE-2022-39227 · CVE Program
- CVE-2022-39227 · NVD
- FIRST EPSS
- GHSA-5p8v-58qm-c7fp · GitHub Advisory Database · CC BY 4.0
- CVE-2022-39227 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences