cve.bz

CVE-2026-102271 pyjwt project pyjwt

7.4 highExploit referenceEPSS 0.2%Fix available

High (7.4) in pyjwt project pyjwt. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in pyjwt 2.14.0.

On this page
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.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-102271 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102271?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102271?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-102271 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pyjwt_project:pyjwtfrom 2.4.0 before 2.14.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p4g4-x82p-q773PyPIpyjwt>=2.4.0 <2.14.02.14.0
PYSEC-2026-4149PyPIpyjwt>=2.4.0 <2.14.02.14.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pyjwtno fix listedDEBIAN-CVE-2026-102271
Debian14pyjwt2.14.0-1DEBIAN-CVE-2026-102271
Ubuntu22.04:LTSpyjwt2.3.0-1ubuntu0.5UBUNTU-CVE-2026-102271 USN-8916-1
Ubuntu24.04:LTSpyjwt2.7.0-1ubuntu0.3UBUNTU-CVE-2026-102271 USN-8916-1
Ubuntu26.04:LTSpyjwt2.10.1-4ubuntu1.2UBUNTU-CVE-2026-102271 USN-8916-1
Ubuntu26.10pyjwt2.13.0-1ubuntu1UBUNTU-CVE-2026-102271 USN-8916-2
UbuntuPro:16.04:LTSpyjwt1.3.0-1ubuntu0.1+esm3UBUNTU-CVE-2026-102271 USN-8916-1
UbuntuPro:18.04:LTSpyjwt1.5.3+ds1-1ubuntu0.1+esm3UBUNTU-CVE-2026-102271 USN-8916-1
UbuntuPro:20.04:LTSpyjwt1.7.1-2ubuntu2.1+esm3UBUNTU-CVE-2026-102271 USN-8916-1
Red Hatansible_automation_platform:2.6::el9automation-gateway-server0:2.6.20261019-1.el9apRHSA-2026:87004
Red Hatansible_automation_platform:2.6::el9automation-platform-ui0:2.6.15-1.el9apRHSA-2026:87004
Red Hatansible_automation_platform:2.6::el9python3.12-pulpcore0:3.49.71-1.el9apRHSA-2026:87004
Red Hatansible_automation_platform:2.6::el9python3.12-pyjwt, python3.12-pyjwt+crypto0:2.14.0-1.el9apRHSA-2026:87004
Red Hatenterprise_linux:9::appstreamfence-virt, fence-virtd, fence-agents and 66 more0:4.10.0-110.el9_8.8RHSA-2026:94500
Red Hatenterprise_linux:9::appstreamfence-virt, fence-virtd, fence-agents and 66 more0:4.10.0-122.el9_9.1RHSA-2026:98503
Red Hatenterprise_linux:10.2fence-virt, fence-virtd, fence-agents and 65 more0:4.16.0-21.el10_2.7RHSA-2026:94501
Red Hatenterprise_linux:10.3fence-virt, fence-virtd, fence-agents and 65 more0:4.16.0-34.el10_3.1RHSA-2026:98612
Red Hatenterprise_linux_eus:10.0fence-virt, fence-virtd, fence-agents and 65 more0:4.16.0-5.el10_0.14RHSA-2026:95012
Red Hatrhel_e4s:9.2::appstreamfence-virt, fence-virtd, fence-agents and 23 more0:4.10.0-43.el9_2.27RHSA-2026:94634
Red Hatrhel_e4s:9.2::highavailabilityfence-agents-all, fence-agents-apc, fence-agents-aws and 52 more0:4.10.0-43.el9_2.27RHSA-2026:94634
Red Hatrhel_e4s:9.2::resilientstoragefence-agents-all, fence-agents-apc, fence-agents-aws and 51 more0:4.10.0-43.el9_2.27RHSA-2026:94634
4 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morepython-PyJWT2.8.0-150400.8.20.1SUSE-SU-2026:5064-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-PyJWT2.12.1-160000.3.1SUSE-SU-2026:24219-1
SUSELinux Micro 6.0python-PyJWT2.9.0-159998.1.1SUSE-SU-2026:24134-1
SUSELinux Micro 6.1python-PyJWT2.12.1-slfo.1.1_3.1SUSE-SU-2026:24377-1
SUSELinux Micro 6.2python-PyJWT2.12.1-160000.3.1SUSE-SU-2026:24126-1
openSUSELeap 16.0python-PyJWT2.12.1-160000.3.1openSUSE-SU-2026:22074-1
AlmaLinux9fence-virt, fence-agents-all, fence-agents-apc and 34 more4.10.0-110.el9_8.8ALSA-2026:94500
AlmaLinux10fence-agents-apc, fence-agents-eps, fence-agents-rsa and 33 more4.16.0-21.el10_2.7ALSA-2026:94501
Rocky Linux9fence-agents0:4.10.0-110.el9_8.8RLSA-2026:94500
Rocky Linux9fence-virt, fence-virtd, fence-virtd-cpg and 65 more0:4.10.0-122.el9_9.1RLSA-2026:98503
Rocky Linux10fence-agents0:4.16.0-21.el10_2.7RLSA-2026:94501
Rocky Linux10fence-virt, fence-virtd, fence-virtd-cpg and 64 more0:4.16.0-34.el10_3.1RLSA-2026:98612
Azure Linux3python-jwt2.15.1-1AZL-105221
Alpaquita25, streampy3-jwt2.15.1-r0BELL-CVE-2026-102271

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because an attacker can forge valid JSON Web Tokens and bypass authentication mechanisms if public cryptographic keys are mistakenly treated as shared secrets. Exploitation requires a specific application scenario where both asymmetric and HMAC algorithms are concurrently permitted during signature verification and public keys are provided in raw DER binary format. Typical Red Hat product integrations do not employ this vulnerable algorithm combination or key encoding by default, which restricts the overall attack surface in standard production environments.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-pyjwt-0:2.14.0-1.el9apFixed 2026-10-21RHSA-2026:87004
Red Hat Enterprise Linux 10fence-agents-0:4.16.0-21.el10_2.7Fixed 2026-11-03RHSA-2026:94501
Red Hat Enterprise Linux 10fence-agents-0:4.16.0-34.el10_3.1Fixed 2026-11-11RHSA-2026:98612
Red Hat Enterprise Linux 10.0 Extended Update Supportfence-agents-0:4.16.0-5.el10_0.14Fixed 2026-11-04RHSA-2026:95012
Red Hat Enterprise Linux 9fence-agents-0:4.10.0-110.el9_8.8Fixed 2026-11-03RHSA-2026:94500
Red Hat Enterprise Linux 9fence-agents-0:4.10.0-122.el9_9.1Fixed 2026-11-11RHSA-2026:98503
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsfence-agents-0:4.10.0-43.el9_2.27Fixed 2026-11-03RHSA-2026:94634
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsfence-agents-0:4.10.0-62.el9_4.31Fixed 2026-11-03RHSA-2026:94557
Red Hat Enterprise Linux 9.6 Extended Update Supportfence-agents-0:4.10.0-86.el9_6.23Fixed 2026-11-03RHSA-2026:94523
Red Hat AI Inference Server 3.5rhaii/vllm-rocm-rhel9:1791425869Fixed 2026-10-13RHSA-2026:82059
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-backend-rhel9Affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-builder-rhel9Affected
Fence Agents Remediation Operatorworkload-availability/fence-agents-remediation-rhel9-operatorAffected
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Affected
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-sandbox-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Will not fix
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
124 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-102271.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON