Skip to main content

CVE-2026-102268: CWE-347: Improper Verification of Cryptographic Signature in jpadilla pyjwt

0
Critical
VulnerabilityCVE-2026-102268cvecve-2026-102268cwe-347
Published: 09/28/2026 (09/28/2026, 20:26:13 UTC)
Source: CVE Database V5
Vendor/Project: jpadilla
Product: pyjwt

Description

PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, is_pem_format in jwt/utils.py is affected because is_pem_format does not recognize every PEM representation accepted by the cryptography loader. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a mutated public-key PEM as raw key bytes. As a result, HMACAlgorithm.prepare_key treats the unrecognized asymmetric public key 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.

CVSS v3.1

Score 9.1critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

jpadilla

pyjwt

Affected versions
<2.14.0
pyjwt
pkg:pypi/pyjwt
Affected versions
<2.14.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/28/2026, 21:02:44 UTC

Technical Analysis

PyJWT, a Python library for JSON Web Token standards, has a cryptographic signature verification vulnerability (CWE-347) in versions before 2.14.0. The function is_pem_format does not recognize all PEM representations accepted by the cryptography loader. When applications mix HMAC and asymmetric algorithms and supply a mutated public-key PEM as raw key bytes, HMACAlgorithm.prepare_key treats the unrecognized asymmetric public key as an HMAC secret. This allows an attacker with knowledge of the public key to forge authenticated HMAC tokens. The vulnerability is addressed in PyJWT version 2.14.0.

Potential Impact

An attacker who knows the public key can forge authenticated HMAC tokens, potentially bypassing authentication controls. This compromises the integrity and authenticity of tokens, leading to unauthorized access or actions within applications relying on PyJWT for token verification.

Mitigation Recommendations

Upgrade PyJWT to version 2.14.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-28T20:11:16.658Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6abad292f7a7c541062fe5ba

Added to database: 09/28/2026, 20:48:18 UTC

Last enriched: 09/28/2026, 21:02:44 UTC

Last updated: 09/29/2026, 02:48:26 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses