Description
PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, PyJWT is_pem_format is affected because lazy PEM regular expression backtracks extensively. This occurs when a certificate-like input contains repeated BEGIN markers without a matching END marker. As a result, is_pem_format performs unbounded backtracking while searching for a PEM end marker. Consequently, an attacker can cause intensive CPU consumption. This issue is fixed in version 2.14.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jpadilla | pyjwt | < 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 | — |
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 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLES 15 SP5 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLES 15 SP4 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLES 12 | python-PyJWT | 1.5.3-3.22.1 | SUSE-SU-2026:5093-1 |
| SLES 3 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-PyJWT | 2.12.1-160000.3.1 | SUSE-SU-2026:24219-1 |
| SLES for SAP 15 SP6 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLES for SAP 15 SP5 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLES for SAP 15 SP4 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLES 16.0 | python-PyJWT | 2.12.1-160000.3.1 | SUSE-SU-2026:24219-1 |
| SLE Micro 6.2 | python-PyJWT | 2.12.1-160000.3.1 | SUSE-SU-2026:24126-1 |
| SLE Micro 6.1 | python-PyJWT | 2.12.1-slfo.1.1_3.1 | SUSE-SU-2026:24377-1 |
| SLE Micro 6.0 | python-PyJWT | 2.9.0-159998.1.1 | SUSE-SU-2026:24134-1 |
| SLE HPC 15 SP5 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
| SLE HPC 15 SP4 | python-PyJWT | 2.8.0-150400.8.20.1 | SUSE-SU-2026:5064-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-PyJWT | 2.15.1-1.1 | openSUSE-SU-2026:11994-1 |
| openSUSE Leap 16.0 | python-PyJWT | 2.12.1-160000.3.1 | openSUSE-SU-2026:22074-1 |
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.78-core-integrations | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pyjwt | < 2.14.0 | 2.14.0 | GHSA-jwrc-g2q2-pq5p |
Advisories 8
- SUSE-SU-2026:5093-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Nov 4, 2026
- SUSE-SU-2026:5064-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Nov 3, 2026
- SUSE-SU-2026:24377-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Oct 27, 2026
- SUSE-SU-2026:24219-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Oct 21, 2026
- openSUSE-SU-2026:22074-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Oct 19, 2026
- SUSE-SU-2026:24134-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Oct 15, 2026
- SUSE-SU-2026:24126-1 Security update for python-PyJWT SUSE / openSUSE Security Updates · Oct 13, 2026
- openSUSE-SU-2026:11994-1 python313-PyJWT-2.15.1-1.1 on GA media SUSE / openSUSE Security Updates · Oct 5, 2026