{"id":"CVE-2026-102265","published":"2026-09-28T20:48:04Z","modified":"2026-10-01T15:01:31Z","title":"PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header","vendor":"jpadilla","product":"pyjwt","tier":"tail","description":{"text":"PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, PyJWS._load in jwt/api_jws.py is affected because parser catches ValueError but not RecursionError. This occurs when a deeply nested token header reaches json.loads. As a result, RecursionError escapes the documented PyJWT error hierarchy. Consequently, an unauthenticated malformed token can cause a request-level failure and HTTP 500. This issue is fixed in version 2.14.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00523,"percentile":0.37746,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-8wjv-2p76-3863","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jpadilla/pyjwt/commit/06573692ebcdec8831c3927513b3e87c31fbbb62","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpadilla/pyjwt/releases/tag/2.14.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":7.55},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"jpadilla","affectedVersions":[{"vendor":"jpadilla","product":"pyjwt","versions":[">= 2.13.0, < 2.14.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-01T15:00:55.850520Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyJWT","vulnerableRanges":[">=2.13.0, <2.14.0"],"patched":["2.14.0"],"from":["GHSA-8wjv-2p76-3863","PYSEC-2026-4142"],"provenance":"source"}],"summary":{"text":"The PyJWT library's JWS parsing in jwt/api_jws.py (PyJWS._load) fails to catch RecursionError when a deeply nested token header is passed to json.loads, so the error escapes the library's documented exception hierarchy. An unauthenticated remote attacker who can submit a crafted malformed token to an application using the affected versions can trigger a request-level failure and HTTP 500 response, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:26Z"},"euvd":{"id":"EUVD-2026-88549","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jpadilla-pyjwt-cve-2026-102265","children":[{"from":"CVE-2026-102265","to":"CVE-2026-102269","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jwt/api_jws.py"],"commits":["https://github.com/jpadilla/pyjwt/commit/06573692ebcdec8831c3927513b3e87c31fbbb62","https://github.com/jpadilla/pyjwt/commit/e6f48401001609a8f99e71fcaf355fb895d508a8"],"basis":"shared function","functions":["_load"]}]}]}}