Description
PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because HMAC key guard only recognizes top-level public JWK forms and misses container representations. This occurs when an application allows HMAC and asymmetric algorithms and passes a public JWK container as the raw key. As a result, public asymmetric key material is accepted as the HMAC secret. Consequently, an attacker who knows the public key can forge a token with arbitrary authenticated claims. 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pyjwt | 2.13.0-1ubuntu1 | USN-8916-2 |
| Ubuntu 26.04 LTS | pyjwt | 2.10.1-4ubuntu1.2 | USN-8916-1 |
| Ubuntu 24.04 LTS | pyjwt | 2.7.0-1ubuntu0.3 | USN-8916-1 |
| Ubuntu 22.04 LTS | pyjwt | 2.3.0-1ubuntu0.5 | USN-8916-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | pyjwt | 1.7.1-2ubuntu2.1+esm3 | USN-8916-1 |
| Ubuntu Pro 18.04 LTS | pyjwt | 1.5.3+ds1-1ubuntu0.1+esm3 | USN-8916-1 |
| Ubuntu Pro 16.04 LTS | pyjwt | 1.3.0-1ubuntu0.1+esm3 | USN-8916-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Satellite Utils 6 | foreman +1 | 3.12.0.26-1.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite Utils 6 | rubygem-hammer_cli_foreman | 3.18.3-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite Utils 6 | rubygem-http-cookie | 1.1.6-2.el9sat | RHSA-2026:100120 |
| Red Hat Satellite Utils 6 | satellite +1 | 6.19.6-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite Maintenance 6 | ansible-core | 1:2.16.19-4.el9sat | RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite Capsule 6 | ansible-core +1 | 1:2.16.19-4.el9sat | RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite Capsule 6 | createrepo_c +2 | 1.2.6-1.el9pc | RHSA-2026:100120 |
| Red Hat Satellite Capsule 6 | foreman +2 | 3.12.0.26-1.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite Capsule 6 | python-pulp-rpm +1 | 3.26.9-1.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite Capsule 6 | python-pulpcore +1 | 3.49.39-5.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite Capsule 6 | python-pyjwt +2 | 2.15.1-1.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite Capsule 6 | python-pysequoia +1 | 0.1.35-1.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite Capsule 6 | python3.12-pulp-container | 2.26.19-2.el9pc | RHSA-2026:100120 |
| Red Hat Satellite Capsule 6 | python3.12-pulp-rpm | 3.29.12-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite Capsule 6 | python3.12-pulpcore | 3.73.45-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite Capsule 6 | python3.12-pyjwt +1 | 2.15.1-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite Capsule 6 | python3.12-pysequoia | 0.1.35-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite Capsule 6 | rubygem-http-cookie | 1.1.6-2.el9sat | RHSA-2026:100120 |
| Red Hat Satellite Capsule 6 | rubygem-smart_proxy_container_gateway | 3.5.1-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite Capsule 6 | rubygem-smart_proxy_dynflow | 0.9.3-2.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite Capsule 6 | satellite +3 | 6.19.6-1.el9sat | RHSA-2026:100120 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Satellite 6 | ansible-core +1 | 1:2.16.19-4.el9sat | RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | candlepin +1 | 4.4.26-2.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | createrepo_c +2 | 1.2.6-1.el9pc | RHSA-2026:100120 |
| Red Hat Satellite 6 | foreman +14 | 3.12.0.26-1.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | python-pulp-rpm +1 | 3.26.9-1.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite 6 | python-pulpcore +1 | 3.49.39-5.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite 6 | python-pyjwt +2 | 2.15.1-1.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite 6 | python-pysequoia +1 | 0.1.35-1.el8pc | RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite 6 | python3.12-pulp-container | 2.26.19-2.el9pc | RHSA-2026:100120 |
| Red Hat Satellite 6 | python3.12-pulp-rpm | 3.29.12-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite 6 | python3.12-pulpcore | 3.73.45-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite 6 | python3.12-pyjwt +1 | 2.15.1-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite 6 | python3.12-pysequoia | 0.1.35-1.el9pc | RHSA-2026:100120, RHSA-2026:99952 |
| Red Hat Satellite 6 | rubygem-crass | 1.0.8-1.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | rubygem-foreman_ansible | 17.0.5-2.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-foreman_remote_execution +1 | 16.5.3-3.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-foreman_rh_cloud | 13.2.12-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-foreman_theme_satellite | 16.2.5-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-hammer_cli_foreman | 3.18.3-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-http-cookie | 1.1.6-2.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-katello | 4.14.0.24-1.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | rubygem-puma | 6.4.3-2.el8sat | RHSA-2026:99952, RHSA-2026:99950, RHSA-2026:99949 |
| Red Hat Satellite 6 | rubygem-safemode | 1.5.0-3.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | rubygem-smart_proxy_container_gateway | 3.5.1-1.el9sat | RHSA-2026:100120 |
| Red Hat Satellite 6 | rubygem-smart_proxy_dynflow | 0.9.3-2.el8sat | RHSA-2026:100120, RHSA-2026:99952, RHSA-2026:99950 |
| Red Hat Satellite 6 | satellite +3 | 6.19.6-1.el9sat | RHSA-2026:100120 |
| Red Hat Ansible Automation Platform 2 | automation-gateway-server | 2.6.20261019-1.el9ap | RHSA-2026:87004 |
| Red Hat Ansible Automation Platform 2 | automation-platform-ui | 2.6.15-1.el9ap | RHSA-2026:87004 |
| Red Hat Ansible Automation Platform 2 | python3.12-pulpcore | 3.49.71-1.el9ap | RHSA-2026:87004 |
| Red Hat Ansible Automation Platform 2 | python3.12-pyjwt +1 | 2.14.0-1.el9ap | RHSA-2026:87004 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-jwt +1 | 2.4.0-1.amzn2023.0.6 | ALAS2023-2026-3298 |
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-w2cx-738m-mc7w |
Advisories 9
- RHSA-2026:99949 Red Hat Security Advisory: Satellite 6.16.15 Async Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:100120 Red Hat Security Advisory: Satellite 6.19.6 Async Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:99950 Red Hat Security Advisory: Satellite 6.17.13 Async Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:99952 Red Hat Security Advisory: Satellite 6.18.11 Async Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:87004 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- WID-SEC-2026-4111 Red Hat Ansible Automation Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- USN-8916-1 pyjwt vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-8916-2 pyjwt vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- ALAS2023-2026-3298 Important: python-jwt security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026