Vulnerabilities / CVE-2022-39227

critical

CVE-2022-39227

python-jwt: token forgery with new claims

Published Modified CWE 290
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, CBL-Mariner. Rated lower by Red Hat (high).

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 packages and fixed versions

SourcePackageFixed in
CBL-Mariner 1.0python-jwt0:2.4.0-2.cm1
CBL-Mariner 2.0python-jwt0:2.4.0-2.cm2
pip::GitHub Security Advisory pippython-jwt3.3.4
Red Hatpython-jwt, python2-jwtno fix listed
Show all 5 entries from 4 sources
SourcePackageFixed in
CBL-Mariner 1.0python-jwt0:2.4.0-2.cm1
CBL-Mariner 2.0python-jwt0:2.4.0-2.cm2
pip::GitHub Security Advisory pippython-jwt3.3.4
Red Hatpython-jwtno fix listed
Red Hatpython2-jwtno fix listed

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.