CVE-2026-102271 json
PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
published 2026-09-28 41 d ago modified 2026-10-06 33 d ago also GHSA-p4g4-x82p-q773 , PYSEC-2026-4149 , EUVD-2026-88539
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
PyJWT is a Python implementation of JSON Web Token standards. From 2.4.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because asymmetric-key guard relies on textual markers that are absent from DER encoding. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a DER public key as the shared verification key. As a result, PyJWT uses public DER bytes as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.
Patch / fix
- pypi pyjwt 2.14.0
- pyjwt_project pyjwt 2.14.0
- pyjwt Debian 14 2.14.0-1
debian advisories DEBIAN-CVE-2026-102271
- pyjwt Ubuntu 22.04 LTS 2.3.0-1ubuntu0.5
- pyjwt Ubuntu 24.04 LTS 2.7.0-1ubuntu0.3
- pyjwt Ubuntu 26.10 2.13.0-1ubuntu1
- pyjwt Ubuntu 26.04 LTS 2.10.1-4ubuntu1.2
- pyjwt Ubuntu Pro 16.04 LTS 1.3.0-1ubuntu0.1+esm3
- pyjwt Ubuntu Pro 18.04 LTS 1.5.3+ds1-1ubuntu0.1+esm3
- pyjwt Ubuntu Pro 20.04 LTS 1.7.1-2ubuntu2.1+esm3
ubuntu advisories UBUNTU-CVE-2026-102271
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-PyJWT SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +9 more 2.8.0-150400.8.20.1
- python-PyJWT Linux Micro 6.1 2.12.1-slfo.1.1_3.1
- python-PyJWT SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 2.12.1-160000.3.1
- python-PyJWT Linux Micro 6.0 2.9.0-159998.1.1
suse advisories SUSE-SU-2026:5064-1SUSE-SU-2026:24377-1SUSE-SU-2026:24126-1SUSE-SU-2026:24219-1SUSE-SU-2026:24134-1
- python-PyJWT openSUSE Leap 16.0 2.12.1-160000.3.1
opensuse advisories openSUSE-SU-2026:22074-1
- fence-virt AlmaLinux 9 4.10.0-110.el9_8.8
- fence-agents-all AlmaLinux 9 4.10.0-110.el9_8.8
- fence-agents-apc AlmaLinux 9 4.10.0-110.el9_8.8
- fence-agents-aws AlmaLinux 9 4.10.0-110.el9_8.8
- fence-agents-gce AlmaLinux 9 4.10.0-110.el9_8.8
- fence-agents-rsa AlmaLinux 9 4.10.0-110.el9_8.8
- ha-cloud-support AlmaLinux 9 4.10.0-110.el9_8.8
- fence-agents-lpar AlmaLinux 9 4.10.0-110.el9_8.8
almalinux advisories ALSA-2026:94500ALSA-2026:94501
- fence-agents Rocky Linux 10 4.16.0-21.el10_2.7
- fence-agents Rocky Linux 9 4.10.0-110.el9_8.8
rocky linux advisories RLSA-2026:94501RLSA-2026:94500
- python-jwt Azure Linux 3.0 2.15.1-1
azure linux advisories AZL-105221
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-102271 updated cvss 7.4
pyjwt: PyJWT: Authentication bypass via acceptance of DER public keys as HMAC secrets
-
Red Hat Ansible Automation Orchestrator 2026 ansible-automation-platform/automation-orchestrator-backend-rhel9 Red Hat Confidential Compute Attestation openshift-sandboxed-containers/osc-podvm-builder-rhel9 Red Hat Fence Agents Remediation Operator workload-availability/fence-agents-remediation-rhel9-operator Red Hat Lightspeed Core lightspeed-core/rag-tool-cpu-rhel9, lightspeed-core/lightspeed-stack-rhel9, lightspeed-core/rag-tool-cuda-12.9-rhel9 Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9affected: workaround, no fix available
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-ocp-rag-rhel9, openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed/lightspeed-agentic-sandbox-rhel9, openshift-lightspeed/lightspeed-to-dataverse-exporter-rhel9affected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat AI Inference Server rhaii/vllm-tpu-rhel9, rhaii/vllm-neuron-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-27/hub-rhel9, ansible-automation-platform-27/ee-supported-rhel9, ansible-automation-platform-26/eda-controller-rhel9, ansible-automation-platform-27/eda-controller-rhel9affected: workaround, no fix available
-
Red Hat Ceph Storage 4 python2-jwt Red Hat Ceph Storage 7 rhceph/rhceph-7-rhel9 Red Hat Ceph Storage 9 rhceph/rhceph-9-rhel9affected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-gaudi-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-ogx-core-rhel9, rhoai/odh-feature-server-rhel9, rhoai/odh-llm-d-kv-cache-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-th-torch-cuda-py312-rhel9, rhoai/odh-kserve-autogluon-server-rhel9, +17 more Red Hat OpenShift Container Platform 4 openshift4/ose-ansible-operator Red Hat OpenShift Container Platform 5 python-pyjwt Red Hat OpenShift Virtualization 4 container-native-virtualization/ocp-virt-validation-checkup-rhel9affected: workaround, no fix available
-
Red Hat Satellite 6 python-pyjwt, python3-pyjwt, python3.12-pyjwt, satellite/foreman-mcp-server-rhel9, satellite/iop-host-inventory-rhel9 Red Hat Update Infrastructure 4 for Cloud Providers python-pyjwt Red Hat Update Infrastructure 5 rhui5/rhua-rhel9, rhui5/rhua-tp-rhel9under investigation
-
Red Hat AI Inference Server 3.5 rhaii/vllm-cpu-rhel9 1791473614, rhaii/vllm-cuda-rhel9 1791473631, rhaii/vllm-rocm-rhel9 1791425869, rhaii/vllm-gaudi-rhel9 1791427182, rhaii/vllm-spyre-rhel9 1791818357fixed: vendor fix RHSA-2026:82415
show 17 moreshow fewer
-
Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/gateway-rhel9 1791971533, ansible-automation-platform-26/ee-supported-rhel9 1791974220, ansible-automation-platform-tech-preview/metrics-service-rhel9 1791944819fixed: vendor fix RHSA-2026:87120
-
Red Hat Ansible Automation Platform 2.6 for RHEL 9 python3.12-pyjwt 2.14.0-1.el9ap, python3.12-pyjwt+crypto 2.14.0-1.el9apfixed: vendor fix RHSA-2026:87004
-
Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/gateway-rhel9 1792429216, ansible-automation-platform-27/metrics-service-rhel9 1792387216fixed: vendor fix RHSA-2026:87124
-
Red Hat Enterprise Linux AI 3.5 rhelai3/bootc-cuda-rhel9 1793135861, rhelai3/bootc-rocm-rhel9 1793135863, rhelai3/bootc-aws-cuda-rhel9 1793194817, rhelai3/bootc-gcp-cuda-rhel9 1793194815, rhelai3/disk-image-cuda-rhel9 1793206758, rhelai3/bootc-azure-cuda-rhel9 1793194815, +1 morefixed: vendor fix RHSA-2026:92452
-
Red Hat Enterprise Linux AppStream (v. 9) fence-virt 4.10.0-110.el9_8.8, fence-virtd 4.10.0-110.el9_8.8, fence-agents 4.10.0-110.el9_8.8, fence-virtd-cpg 4.10.0-110.el9_8.8, fence-virtd-tcp 4.10.0-110.el9_8.8, fence-agents-all 4.10.0-110.el9_8.8, +51 morefixed: vendor fix RHSA-2026:94500
-
Red Hat Enterprise Linux AppStream (v. 10) fence-virt 4.16.0-21.el10_2.7, fence-virtd 4.16.0-21.el10_2.7, fence-agents 4.16.0-21.el10_2.7, fence-virtd-cpg 4.16.0-21.el10_2.7, fence-virtd-tcp 4.16.0-21.el10_2.7, fence-agents-all 4.16.0-21.el10_2.7, +50 morefixed: vendor fix RHSA-2026:94501
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) fence-virt 4.10.0-43.el9_2.27, fence-virtd 4.10.0-43.el9_2.27, fence-agents 4.10.0-43.el9_2.27, fence-virtd-cpg 4.10.0-43.el9_2.27, fence-virtd-tcp 4.10.0-43.el9_2.27, fence-agents-virsh 4.10.0-43.el9_2.27, +8 morefixed: vendor fix RHSA-2026:94634
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) fence-virt 4.10.0-62.el9_4.31, fence-virtd 4.10.0-62.el9_4.31, fence-agents 4.10.0-62.el9_4.31, fence-virtd-cpg 4.10.0-62.el9_4.31, fence-virtd-tcp 4.10.0-62.el9_4.31, fence-agents-virsh 4.10.0-62.el9_4.31, +8 morefixed: vendor fix RHSA-2026:94557
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) fence-virt 4.16.0-5.el10_0.14, fence-virtd 4.16.0-5.el10_0.14, fence-agents 4.16.0-5.el10_0.14, fence-virtd-cpg 4.16.0-5.el10_0.14, fence-virtd-tcp 4.16.0-5.el10_0.14, fence-agents-all 4.16.0-5.el10_0.14, +50 morefixed: vendor fix RHSA-2026:95012
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) fence-virt 4.10.0-86.el9_6.23, fence-virtd 4.10.0-86.el9_6.23, fence-agents 4.10.0-86.el9_6.23, fence-virtd-cpg 4.10.0-86.el9_6.23, fence-virtd-tcp 4.10.0-86.el9_6.23, fence-agents-all 4.10.0-86.el9_6.23, +51 morefixed: vendor fix RHSA-2026:94523
-
Red Hat Enterprise Linux High Availability E4S (v.9.2) fence-agents-all 4.10.0-43.el9_2.27, fence-agents-apc 4.10.0-43.el9_2.27, fence-agents-aws 4.10.0-43.el9_2.27, fence-agents-eps 4.10.0-43.el9_2.27, fence-agents-gce 4.10.0-43.el9_2.27, fence-agents-rsa 4.10.0-43.el9_2.27, +37 morefixed: vendor fix RHSA-2026:94634
-
Red Hat Enterprise Linux High Availability E4S (v.9.4) fence-agents-all 4.10.0-62.el9_4.31, fence-agents-apc 4.10.0-62.el9_4.31, fence-agents-aws 4.10.0-62.el9_4.31, fence-agents-eps 4.10.0-62.el9_4.31, fence-agents-gce 4.10.0-62.el9_4.31, fence-agents-rsa 4.10.0-62.el9_4.31, +37 morefixed: vendor fix RHSA-2026:94557
-
Red Hat Enterprise Linux Resilient Storage E4S (v.9.2) fence-agents-all 4.10.0-43.el9_2.27, fence-agents-apc 4.10.0-43.el9_2.27, fence-agents-aws 4.10.0-43.el9_2.27, fence-agents-eps 4.10.0-43.el9_2.27, fence-agents-gce 4.10.0-43.el9_2.27, fence-agents-rsa 4.10.0-43.el9_2.27, +36 morefixed: vendor fix RHSA-2026:94634
-
Red Hat Enterprise Linux Resilient Storage E4S (v.9.4) fence-agents-all 4.10.0-62.el9_4.31, fence-agents-apc 4.10.0-62.el9_4.31, fence-agents-aws 4.10.0-62.el9_4.31, fence-agents-eps 4.10.0-62.el9_4.31, fence-agents-gce 4.10.0-62.el9_4.31, fence-agents-rsa 4.10.0-62.el9_4.31, +36 morefixed: vendor fix RHSA-2026:94557
-
Red Hat OpenShift AI 3.4 rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9 1792798552fixed: vendor fix RHSA-2026:92510
-
Red Hat Trusted Artifact Signer 1.5 rhtas/rh-sigstore-a2a-rhel9 1793624122, rhtas/model-transparency-rhel9 1793696578fixed: vendor fix RHSA-2026:95261
-
Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9, rhaiis/vllm-cuda-rhel9, rhaiis/vllm-rocm-rhel9 Red Hat Ansible Automation Platform 2 python-pyjwt, python3x-pyjwt, python3.11-pyjwt, automation-controller, ansible-automation-platform-24/hub-rhel8, ansible-automation-platform-25/hub-rhel8, +21 more Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1791947385, ansible-automation-platform-26/hub-web-rhel9 1791952205, ansible-automation-platform-26/receptor-rhel9 1791968536, ansible-automation-platform-26/mcp-tools-rhel9 1791941340, ansible-automation-platform-26/controller-rhel9 1791947602, ansible-automation-platform-26/de-minimal-rhel9 1791961810, +22 more Red Hat Ansible Automation Platform 2.6 for RHEL 9 receptor 1.6.9-1.el9ap, molecule 26.10.0-1.el9ap, receptorctl 1.6.9-1.el9ap, ansible-lint 26.10.1-1.el9ap, ansible-rulebook 1.2.3-1.el9ap, automation-hub 4.11.15-1.el9ap, +50 morenot affected: vulnerable code not present
14 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 38 d ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jpadilla/pyjwt/security/advisories/GHSA-p4g4-x82p-q773 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pyjwt | >=2.4.0, <2.14.0 |
2.14.0 |
Affected products
- jpadilla pyjwt
Classification
- Weakness
-
- CWE-347 Improper Verification of Cryptographic Signature
References
-
github.com
/jpadilla/pyjwt/commit/2798504fa2663364573cf2d1043d8d7fef389499
web, patch
-
github.com
/jpadilla/pyjwt/security/advisories/GHSA-p4g4-x82p-q773
exploit, web, patch, vendor-advisory
-
github.com
/jpadilla/pyjwt/releases/tag/2.14.0
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-102271
advisory
-
github.com
/jpadilla/pyjwt
package
-
pypi.org
/project/pyjwt
package
-
github.com
/advisories/GHSA-p4g4-x82p-q773
advisory
Sources
- CVE List CVE-2026-102271
- GitHub Advisory GHSA-p4g4-x82p-q773
- NVD CVE-2026-102271
- OSV PYSEC-2026-4149
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.