Security mailing lists by PureSourceCode

CVE-2026-102265

MEDIUM 5.3CVSS 3.1

PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header

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.

Published
28 Sep 2026
Last modified
7 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-674
Also known as
GHSA-8wjv-2p76-3863PYSEC-2026-4142
Sources
NVDJSONOSV GHSA-8wjv-2p76-3863JSONOSV PYSEC-2026-4142JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
OSV PyPA CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pyjwt_project pyjwt
cpe:2.3:a:pyjwt_project:pyjwt:2.13.0:*:*:*:*:*:*:*
= 2.13.0
OSV PyPI pyjwt >= 2.13.0, < 2.14.0 2.14.0

References

History

  • 25 Nov 2026 21:21 UTC · NVD: first stored (published 28 Sep 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Oct 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.