{"id":"CVE-2022-39227","published":"2022-09-23T06:55:09Z","modified":"2024-08-03T12:00:43Z","title":"Python-jwt subject to Authentication Bypass by Spoofing","vendor":"davedoesdev","product":"python-jwt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05695,"percentile":0.9319,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/davedoesdev/python-jwt/security/advisories/GHSA-5p8v-58qm-c7fp","tags":[]},{"url":"https://github.com/davedoesdev/python-jwt/commit/88ad9e67c53aa5f7c43ec4aa52ed34b7930068c9","tags":[]},{"url":"https://github.com/pypa/advisory-database/blob/main/vulns/python-jwt/PYSEC-2022-259.yaml","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/authentication-bypass-in-python-jwt","tags":[]}],"priority":{"score":30.0,"factors":[{"name":"EPSS percentile","points":18.64},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.37}]},"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2023-06-07","earliestUrl":"https://github.com/user0x1337/CVE-2022-39227","repos":[{"name":"user0x1337/CVE-2022-39227","url":"https://github.com/user0x1337/CVE-2022-39227","stars":22,"created":"2023-06-07"},{"name":"melikesraoz/cve-2022-39227-jwt-auth-bypass-demo","url":"https://github.com/melikesraoz/cve-2022-39227-jwt-auth-bypass-demo","stars":1,"created":"2026-04-27"},{"name":"NoSpaceAvailable/CVE-2022-39227","url":"https://github.com/NoSpaceAvailable/CVE-2022-39227","stars":0,"created":"2024-03-28"}]},"first":{"date":"2023-06-07","source":"PoC-in-GitHub","url":"https://github.com/user0x1337/CVE-2022-39227"},"provenance":"source"},"vendorSlug":"davedoesdev","affectedVersions":[{"vendor":"davedoesdev","product":"python-jwt","versions":["< 3.3.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-10T20:53:18.535735Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"python-jwt","vulnerableRanges":["<3.3.4",">=3.0.0, <3.3.4"],"patched":["3.3.4"],"from":["GHSA-5p8v-58qm-c7fp","PYSEC-2022-259"],"provenance":"source"}],"summary":{"text":"The python-jwt module, a Python library for generating and verifying JSON Web Tokens from davedoesdev, contains an authentication bypass by spoofing flaw in versions prior to 3.3.4. An attacker who obtains a JWT can forge its contents without knowing the secret key, which depending on the application can enable identity spoofing, session hijacking, or authentication bypass, requiring only that the attacker holds a token and no authentication, user interaction, or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:34:39Z"},"euvd":{"id":"EUVD-2022-0219","exploited":false,"provenance":"source"}}