PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 17 fixed, 19 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-347.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jpadilla | pyjwt | 2.4.0 to before 2.14.0 | 2.14.0 | Patch available | CNA |
| — | pyjwt (PyPI) | 2.4.0 to before 2.14.0 | 2.14.0 | Patch available | GHSA-p4g4-x82p-q773 |
- pyjwt Vendorjpadilla Affected 2.4.0 to before 2.14.0 Fixed in 2.14.0 Patch available CNA
- pyjwt (PyPI) Vendor— Affected 2.4.0 to before 2.14.0 Fixed in 2.14.0 Patch available GHSA-p4g4-x82p-q773
Remediation
- Fix · CNA pyjwt (jpadilla) Fixed in 2.14.0
- Fix · GHSA-p4g4-x82p-q773 pyjwt (PyPI) Fixed in 2.14.0 Advisory →
Red Hat 19 advisories
- RHSA-2026:95267 Released 2026-11-04 · Red Hat rating CriticalRHTAS 1.5.1 - Tech Preview Release Of the Sigstore A2A 0.0.2
- Red Hat Trusted Artifact Signer 1.5 registry.redhat.io/rhtas/rh-sigstore-a2a-rhel9
- RHSA-2026:95261 Released 2026-11-04 · Red Hat rating CriticalRHTAS 1.5.1 - Release of Model Transparency 1.0.6
- Red Hat Trusted Artifact Signer 1.5 registry.redhat.io/rhtas/model-transparency-rhel9
- RHSA-2026:95012 Released 2026-11-04 · Red Hat rating Criticalfence-agents security update
- Red Hat Enterprise Linux AppStream EUS (v. 10.0) fence-agents-4.16.0-5.el10_0.14, fence-agents-aliyun-4.16.0-5.el10_0.14, fence-agents-all-4.16.0-5.el10_0.14 +47
Show 16 more Red Hat advisories
- RHSA-2026:94634 Released 2026-11-03 · Red Hat rating Criticalfence-agents security update
- Red Hat Enterprise Linux AppStream E4S (v.9.2) fence-agents-4.10.0-43.el9_2.27, fence-agents-common-4.10.0-43.el9_2.27, fence-agents-compute-4.10.0-43.el9_2.27 +11
- Red Hat Enterprise Linux High Availability E4S (v.9.2) fence-agents-aliyun-4.10.0-43.el9_2.27, fence-agents-all-4.10.0-43.el9_2.27, fence-agents-amt-ws-4.10.0-43.el9_2.27 +40
- Red Hat Enterprise Linux Resilient Storage E4S (v.9.2) fence-agents-aliyun-4.10.0-43.el9_2.27, fence-agents-all-4.10.0-43.el9_2.27, fence-agents-amt-ws-4.10.0-43.el9_2.27 +39
- RHSA-2026:94557 Released 2026-11-03 · Red Hat rating Criticalfence-agents security update
- Red Hat Enterprise Linux AppStream E4S (v.9.4) fence-agents-4.10.0-62.el9_4.31, fence-agents-common-4.10.0-62.el9_4.31, fence-agents-compute-4.10.0-62.el9_4.31 +11
- Red Hat Enterprise Linux High Availability E4S (v.9.4) fence-agents-aliyun-4.10.0-62.el9_4.31, fence-agents-all-4.10.0-62.el9_4.31, fence-agents-amt-ws-4.10.0-62.el9_4.31 +40
- Red Hat Enterprise Linux Resilient Storage E4S (v.9.4) fence-agents-aliyun-4.10.0-62.el9_4.31, fence-agents-all-4.10.0-62.el9_4.31, fence-agents-amt-ws-4.10.0-62.el9_4.31 +39
- RHSA-2026:94523 Released 2026-11-03 · Red Hat rating Criticalfence-agents security update
- Red Hat Enterprise Linux AppStream EUS (v.9.6) fence-agents-4.10.0-86.el9_6.23, fence-agents-aliyun-4.10.0-86.el9_6.23, fence-agents-all-4.10.0-86.el9_6.23 +47
- RHSA-2026:94500 Released 2026-11-03 · Red Hat rating Criticalfence-agents security update
- Red Hat Enterprise Linux AppStream (v. 9) fence-agents-4.10.0-110.el9_8.8, fence-agents-aliyun-4.10.0-110.el9_8.8, fence-agents-all-4.10.0-110.el9_8.8 +47
- RHSA-2026:94501 Released 2026-11-03 · Red Hat rating Criticalfence-agents security update
- Red Hat Enterprise Linux AppStream (v. 10) fence-agents-4.16.0-21.el10_2.7, fence-agents-aliyun-4.16.0-21.el10_2.7, fence-agents-all-4.16.0-21.el10_2.7 +47
- RHSA-2026:92510 Released 2026-10-29 · Red Hat rating CriticalRHOAI 3.4.6 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-cli-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +47
- RHSA-2026:92452 Released 2026-10-29 · Red Hat rating CriticalRed Hat Enterprise Linux AI 3.5.2 enhancement update
- Red Hat Enterprise Linux AI 3.5 registry.redhat.io/rhelai3/bootc-aws-cuda-rhel9, registry.redhat.io/rhelai3/bootc-azure-cuda-rhel9, registry.redhat.io/rhelai3/bootc-azure-rocm-rhel9 +3
- RHSA-2026:92449 Released 2026-10-29 · Red Hat rating CriticalRed Hat Enterprise Linux AI 3.5.2 enhancement update
- Red Hat Enterprise Linux AI 3.5 registry.redhat.io/rhelai3/disk-image-cuda-rhel9
- RHSA-2026:87124 Released 2026-10-21 · Red Hat rating CriticalRed Hat Ansible Automation Platform 2.7 Container Release Update
- Red Hat Ansible Automation Platform 2.7 registry.redhat.io/ansible-automation-platform-27/de-supported-rhel9, registry.redhat.io/ansible-automation-platform-27/eda-controller-rhel9, registry.redhat.io/ansible-automation-platform-27/ee-supported-rhel9 +8
- RHSA-2026:87120 Released 2026-10-21 · Red Hat rating CriticalRed Hat Ansible Automation Platform 2.6 Container Release Update
- Red Hat Ansible Automation Platform 2.6 registry.redhat.io/ansible-automation-platform-26/eda-controller-rhel9, registry.redhat.io/ansible-automation-platform-26/ee-supported-rhel9, registry.redhat.io/ansible-automation-platform-26/gateway-rhel9 +8
- RHSA-2026:87004 Released 2026-10-21 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.6 for RHEL 9 automation-gateway-server-2.6.20261019-1.el9ap, automation-platform-ui-2.6.15-1.el9ap, python3.12-pulpcore-3.49.71-1.el9ap +2
- RHSA-2026:82415 Released 2026-10-13 · Red Hat rating CriticalRed Hat AI Inference 3.5.2 (cpu)
- Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-cpu-rhel9
- RHSA-2026:82371 Released 2026-10-13 · Red Hat rating CriticalRed Hat AI Inference 3.5.2 (spyre)
- Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-spyre-rhel9
- RHSA-2026:82368 Released 2026-10-13 · Red Hat rating CriticalRed Hat AI Inference 3.5.2 (cuda)
- Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-cuda-rhel9
- RHSA-2026:82061 Released 2026-10-13 · Red Hat rating CriticalRed Hat AI Inference Tech Preview 3.5.2 (Gaudi)
- Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-gaudi-rhel9
- RHSA-2026:82059 Released 2026-10-13 · Red Hat rating CriticalRed Hat AI Inference 3.5.2 (ROCm)
- Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-rocm-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Ansible Automation Orchestrator 2026 | Affected | No fix yet |
| Confidential Compute Attestation | Affected | No fix yet |
| Fence Agents Remediation Operator | Affected | No fix yet |
| Lightspeed Core | Affected | No fix yet |
| Migration Toolkit for Applications 8 | Affected | No fix yet |
| OpenShift Lightspeed | Affected | No fix yet |
| Red Hat AI Inference Server | Affected | No fix planned: Will not fix |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Ceph Storage 4 | Affected | No fix yet: Fix deferred |
| Red Hat Ceph Storage 7 | Affected | No fix yet: Fix deferred |
| Red Hat Ceph Storage 9 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | — |
| Red Hat Update Infrastructure 4 for Cloud Providers | Affected | — |
| Red Hat Update Infrastructure 5 | Affected | — |
| Red Hat AI Inference Server 3.5 | Fixed | RHSA-2026:82059, RHSA-2026:82061, RHSA-2026:82368, RHSA-2026:82371, RHSA-2026:82415 |
| Red Hat Ansible Automation Platform 2.6 | Fixed | RHSA-2026:87120 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | Fixed | RHSA-2026:87004 |
| Red Hat Ansible Automation Platform 2.7 | Fixed | RHSA-2026:87124 |
| Red Hat Enterprise Linux AI 3.5 | Fixed | RHSA-2026:92449, RHSA-2026:92452 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:94501 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:94500 |
| Red Hat Enterprise Linux AppStream E4S (v.9.2) | Fixed | RHSA-2026:94634 |
| Red Hat Enterprise Linux AppStream E4S (v.9.4) | Fixed | RHSA-2026:94557 |
| Red Hat Enterprise Linux AppStream EUS (v. 10.0) | Fixed | RHSA-2026:95012 |
| Red Hat Enterprise Linux AppStream EUS (v.9.6) | Fixed | RHSA-2026:94523 |
| Red Hat Enterprise Linux High Availability E4S (v.9.2) | Fixed | RHSA-2026:94634 |
| Red Hat Enterprise Linux High Availability E4S (v.9.4) | Fixed | RHSA-2026:94557 |
| Red Hat Enterprise Linux Resilient Storage E4S (v.9.2) | Fixed | RHSA-2026:94634 |
| Red Hat Enterprise Linux Resilient Storage E4S (v.9.4) | Fixed | RHSA-2026:94557 |
| Red Hat OpenShift AI 3.4 | Fixed | RHSA-2026:92510 |
| Red Hat Trusted Artifact Signer 1.5 | Fixed | RHSA-2026:95261, RHSA-2026:95267 |
Not affected: 18 products
- Red Hat AI Inference Server
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.6
- Red Hat Ansible Automation Platform 2.6 for RHEL 10
- Red Hat Ansible Automation Platform 2.6 for RHEL 9
- Red Hat Ansible Automation Platform 2.7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux command line assistant
- Red Hat Hardened Images
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 3.4
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
- Red Hat OpenStack Platform 13 (Queens)
- Red Hat OpenStack Platform 16.2
- Red Hat OpenStack Platform 17.1
- Red Hat OpenStack Platform 18.0
- Red Hat Quay 3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-102271
- 2026-10-03 Alias added: GHSA-p4g4-x82p-q773
- 2026-10-09 Affected versions changed · Red Hat
- 2026-10-13 Fix available: RHSA-2026:82061 · Red Hat
- 2026-10-13 Fix available: RHSA-2026:82059 · Red Hat
- 2026-10-13 Fix available: Red Hat AI Inference Server 3.5 · Red Hat
- 2026-10-14 Fix available: RHSA-2026:82368 · Red Hat
- 2026-10-14 Fix available: RHSA-2026:82415 · Red Hat
- 2026-10-14 Fix available: RHSA-2026:82371 · Red Hat
- 2026-10-16 Affected versions changed · Red Hat
- 2026-10-20 Affected versions changed · Red Hat
- 2026-10-21 Affected versions changed · Red Hat
- 2026-10-21 Fix available: RHSA-2026:87004 · Red Hat
- 2026-10-21 Fix available: Red Hat Ansible Automation Platform 2.6 for RHEL 9 · Red Hat
- 2026-10-22 Fix available: RHSA-2026:87124 · Red Hat
- 2026-10-22 Fix available: RHSA-2026:87120 · Red Hat
- 2026-10-22 Fix available: Red Hat Ansible Automation Platform 2.6, Red Hat Ansible Automation Platform 2.7 · Red Hat
- 2026-10-27 Affected versions changed · Red Hat
- 2026-10-30 Fix available: RHSA-2026:92452 · Red Hat
- 2026-10-30 Fix available: RHSA-2026:92449 · Red Hat
- 2026-10-30 Fix available: RHSA-2026:92510 · Red Hat
- 2026-10-30 Fix available: Red Hat Enterprise Linux AI 3.5, Red Hat OpenShift AI 3.4 · Red Hat
- 2026-10-30 Affected versions changed · Red Hat
- 2026-11-03 Fix available: RHSA-2026:94500 · Red Hat
- 2026-11-03 Fix available: RHSA-2026:94501 · Red Hat
- 2026-11-03 Fix available: RHSA-2026:94523 · Red Hat
- 2026-11-03 Fix available: RHSA-2026:94557 · Red Hat
- 2026-11-03 Fix available: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux AppStream E4S (v.9.4) +3 · Red Hat
- 2026-11-04 Fix available: RHSA-2026:94634 · Red Hat
- 2026-11-04 Fix available: Red Hat Enterprise Linux AppStream E4S (v.9.2), Red Hat Enterprise Linux High Availability E4S (v.9.2), Red Hat Enterprise Linux Resilient Storage E4S (v.9.2) · Red Hat
- 2026-11-04 Fix available: RHSA-2026:95012 · Red Hat
- 2026-11-04 Fix available: Red Hat Enterprise Linux AppStream EUS (v. 10.0) · Red Hat
- 2026-11-04 Affected versions changed · Red Hat
- 2026-11-05 Fix available: Red Hat Trusted Artifact Signer 1.5 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95261 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95267 · Red Hat
- 2026-11-06 Affected versions changed · Red Hat
References
More jpadilla Pyjwt vulnerabilities
- TI-2026-65303 Improper signature verification in jpadilla pyjwt CVSS 3.1CRITICAL 9.1
- TI-2026-65301 PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation CVSS 3.1CRITICAL 9.1
- TI-2026-65219 PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse… CVSS 3.1HIGH 7.5
- TI-2026-65218 PyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524) CVSS 3.1HIGH 7.5
- TI-2026-25107 PyJWT accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation) CVSS 3.1HIGH 7.5
- TI-2026-65310 PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion CVSS 3.1HIGH 8.2
Sources
- CVE-2026-102271 · CVE Program
- CVE-2026-102271 · NVD
- FIRST EPSS
- GHSA-p4g4-x82p-q773 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-102271 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences