CVE-2022-39227
Python vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2022-39227) affects python-jwt, a module for generating and verifying JSON Web Tokens, in versions prior to 3.3.4. The vulnerability was discovered by Tom Tervoort and disclosed on September 21, 2022. The issue allows for Authentication Bypass by Spoofing, enabling identity spoofing, session hijacking, or authentication bypass (GitHub Advisory, NVD).

Technical details

The vulnerability stems from an inconsistency between the JWT parsers used by python-jwt and its dependency jwcrypto. By mixing compact and JSON representations, an attacker can manipulate jwcrypto to parse different claims than those over which a signature is validated. The vulnerability has been assigned a CVSS v3.1 base score of 9.1 (Critical), with attack vector: Network, attack complexity: Low, privileges required: None, user interaction: None, scope: Unchanged, and high impact on both confidentiality and integrity (GitHub Advisory).

Impact

An attacker who obtains a JWT can arbitrarily forge its contents without knowing the secret key. This capability could allow attackers to spoof other users' identities, hijack their sessions, or bypass authentication mechanisms entirely (GitHub Advisory, MITRE).

Exploitability

The vulnerability requires no special privileges or user interaction to exploit. An attacker only needs to obtain a single valid JWT to create new tokens with forged claims that the verify_jwt function will accept as valid (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to version 3.3.4 of python-jwt, which contains the fix for this vulnerability. There are no known workarounds for affected versions (GitHub Advisory, ASEC).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-63003MEDIUM6.5
  • Python logoPython
  • django-cms
NoYesAug 20, 2026
CVE-2026-54624MEDIUM6.5
  • Python logoPython
  • django-cms
NoYesAug 20, 2026
CVE-2026-54622MEDIUM6.5
  • Python logoPython
  • django-cms
NoYesAug 20, 2026
CVE-2026-75526MEDIUM4.4
  • Python logoPython
  • django-cms
NoYesAug 20, 2026
CVE-2026-61663MEDIUM4.3
  • Python logoPython
  • django-cms
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management