Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jpadilla | pyjwt | >= 2.13.0, < 2.14.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pyjwt | 2.14.0-1 | — |
| Debian 13 | pyjwt | No fix yet | — |
| Debian 12 | pyjwt | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pyjwt | No fix yet | — |
| Ubuntu 26.04 LTS | pyjwt | No fix yet | — |
| Ubuntu 24.04 LTS | pyjwt | No fix yet | — |
| Ubuntu 22.04 LTS | pyjwt | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | pyjwt | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pyjwt | No fix yet | — |
| Ubuntu Pro 16.04 LTS | pyjwt | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-jwt | 2.15.1-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | datadog-agent-7.77-core-integrations | 7.77.3-r26 | — |
| Wolfi rolling | datadog-agent-7.78-core-integrations | No fix yet | — |
| Wolfi rolling | datadog-agent-7.79-core-integrations | 7.79.2-r20 | — |
| Wolfi rolling | datadog-agent-7.80-core-integrations | 7.80.4-r19 | — |
| Wolfi rolling | datadog-agent-7.81-core-integrations | 7.81.3-r8 | — |
| Wolfi rolling | ggshield | 1.55.0-r1 | — |
| Wolfi rolling | kserve-storage-controller | 0.21.0-r1 | — |
| Wolfi rolling | open-webui | 0.11.4-r1 | — |
| Wolfi rolling | py3-cassandra-medusa | 0.30.1-r1 | — |
| Wolfi rolling | semgrep | 1.178.0-r6 | — |
| Wolfi rolling | superset-6.1 | 6.1.0-r10 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pyjwt | >= 2.13.0, < 2.14.0 | 2.14.0 | GHSA-8wjv-2p76-3863 |