Skip to main content

PyJWT EUVDEUVD-2026-88484

| CVE-2026-102266 CRITICAL
Improper Verification of Cryptographic Signature (CWE-347)
2026-09-28 GitHub_M GHSA-9j54-fg26-wv3r
9.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service verifying HS256 via empty oct JWK
  2. Exploit
    Compute HMAC-SHA256 over crafted payload using zero-length key
  3. Execution
    Forge HS256 token with arbitrary claims
  4. Impact
    Submit token to authenticate as privileged user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
Exploitation Conditions

Exploitable only when the service verifies HS256 tokens via the PyJWK/PyJWKSet path AND its trusted JWK Set already contains an oct entry with an empty k value ({"kty":"oct","k":""}), which decodes to b"" - typically arising when a missing Base64URL config or secret-manager value is serialized as "k":"". The attacker needs no control of the JWK/JWKS source, no signing oracle, no private key, and no mixed-algorithm allow-list. Limiting factors: the empty-key misconfiguration must pre-exist (non-default and unusual); only PyJWT 2.13.0 through 2.13.x using the PyJWK path is affected; the raw str/bytes HMAC key path is NOT vulnerable (it already rejects empty keys via prepare_key).

Impact

Signals conflict sharply, so the headline CVSS 9.1 overstates real-world urgency. The CVSS vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H) and SSVC 'Technical Impact: total' correctly capture that a successful attack yields full authentication bypass with forged, arbitrarily-claimed tokens. However, EPSS is only 0.18% (6th percentile) and the CVE is NOT in CISA KEV, indicating no evidence of widespread or active exploitation. SSVC also rates 'Automatable: no', consistent with the key limiting factor the advisory makes explicit: exploitation requires the victim service to already hold an empty oct JWK ({"kty":"oct","k":""}) in its trusted JWK Set - a misconfiguration, not a default state. The CVSS AC:L arguably understates this precondition; because the empty-key condition is outside attacker control, a case exists for AC:H (reflected in my independent assessment below). Net: this is a genuinely high-impact signature-verification flaw (CWE-347) but a conditional, low-prevalence-of-exploitable-instances issue rather than a mass-exploitation emergency. Prioritize patching for any service verifying HS256 via PyJWK/PyJWKSet; treat as routine-urgent otherwise.

Exploit ScenarioDerived

A Python service verifies HS256 JWTs through PyJWK/PyJWKSet, and its trusted JWK Set contains an oct entry whose k value was left empty (e.g., a secret-manager value that resolved to ""). A remote attacker computes HMAC-SHA256 over their own crafted header/payload using a zero-length key (b""), producing a valid-looking token with arbitrary authenticated claims. Public proof-of-concept code exists (a published gist), and with AV:N/AC:L the attacker needs no authentication, private key, or control of the JWKS source once the empty-key condition is present.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 07, 2026

Forged HS256 JSON Web Tokens can be accepted as authentic by PyJWT (pip package PyJWT) versions 2.13.0 through 2.13.x when an application verifies tokens through the PyJWK or PyJWKSet path and its trusted JWK Set already contains a symmetric oct entry with an empty key value ({"kty":"oct","k":""}), an unusual precondition typically caused by a missing Base64URL configuration or secret-manager value. Because the PyJWK verification path passes the decoded zero-length key straight to the HMAC check instead of running it through HMACAlgorithm.prepare_key, unauthenticated remote attackers (CVSS PR:N) who know this pre-existing misconfiguration can independently compute HMAC-SHA256(b"", signing_input) and mint valid tokens carrying arbitrary authenticated claims, giving high confidentiality and integrity impact. Public proof-of-concept exploit code exists, but the issue is not in CISA KEV, EPSS is low at 0.18% (6th percentile), and the independent assessment rates attack complexity as High rather than Low, so the headline CVSS 9.1 overstates real-world urgency; the vendor-released patch is version 2.14.0 (commit f91ed44dd65baaf457f4b3353ed35e98a753934c).

Earlier versions of this analysis (1)
v1 Sep 28, 2026 - 20:48 CVSS 7.4

Signature verification bypass in PyJWT 2.13.0 allows remote unauthenticated attackers to forge HMAC-signed JSON Web Tokens (JWTs) when the application verifies tokens using the PyJWK path against a trusted JWK Set that contains an 'oct' entry with an empty 'k' value. The flaw stems from HMACAlgorithm.from_jwk failing to apply prepare_key validation, so a zero-length key is accepted; an attacker can sign a token with the same empty key to carry arbitrary authenticated claims. Exploitation requires the unusual misconfigured empty-key JWK and the specific 2.13.0 release; no public exploit code has been identified at time of analysis, and there is no confirmation of active exploitation.

RemediationAI

Upgrade PyJWT to the vendor-released patch version 2.14.0 (pip install -U PyJWT), which routes JWK-sourced HMAC keys through HMACAlgorithm.prepare_key and rejects empty keys with InvalidKeyError, per the fix commit f91ed44dd65baaf457f4b3353ed35e98a753934c and release notes at https://github.com/jpadilla/pyjwt/releases/tag/2.14.0. If immediate upgrade is not possible, the highest-value action is to audit every trusted JWK/JWKS document used by HS256 verification and remove or rotate any symmetric entry whose "k" value is empty or decodes to zero bytes - the vulnerability is not exploitable unless such an entry already exists, so eliminating it fully closes the attack path; this also means auditing the configuration/secret-manager plumbing that serialized a missing value as "k":"". As a secondary hardening step, enable enforce_minimum_key_length=True so that any short or empty HMAC key raises rather than warns, with the trade-off that legitimate short secrets will start failing validation and must be lengthened first. Do not rely on the raw str/bytes key path as a fix (it was never vulnerable). Because there is no KEV listing and no confirmed active exploitation, emergency change windows are not required, but patch promptly given the public proof-of-concept gist (https://gist.github.com/alon710/021c63a7b1d8134c56a782a255bf9e1a) and the full advisory at https://github.com/jpadilla/pyjwt/security/advisories/GHSA-9j54-fg26-wv3r.

Affected VersionsENISA

pyjwt 2.13.0, < 2.14.0

Affected Packages

pypi pyjwt fix: 2.14.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is an instance of CWE-347 (Improper Verification of Cryptographic Signature) arising from inconsistent key validation inside PyJWT's algorithm layer. HMACAlgorithm.prepare_key already rejects a zero-length HMAC key supplied through the ordinary raw str/bytes path (raising InvalidKeyError), but HMACAlgorithm.from_jwk converts a symmetric JWK's Base64URL-encoded "k" value directly to bytes and returns it without an emptiness check, so {"kty":"oct","k":""} decodes to b"". In jwt/api_jws.py _verify_signature, the PyJWK branch previously used prepared_key = key.key verbatim, bypassing prepare_key entirely; with the default enforce_minimum_key_length=False, PyJWT only emits a warning and proceeds to verify the HMAC with the zero-length key. Since the key is empty, an attacker can compute the correct HMAC-SHA256 signature over any signing input without holding a secret, a private key, a signing oracle, or control over the JWK/JWKS source, and without needing a mixed-algorithm allow-list. The upstream fix replaces the raw assignment with prepared_key = alg_obj.prepare_key(key.key), forcing the JWK-sourced key through the same validation (and the same minimum-length policy) as raw keys, and adds a regression test asserting that decoding an empty-HMAC PyJWK token raises InvalidKeyError. Note that only the PyJWK/PyJWKSet code path is affected; applications passing raw str/bytes HMAC keys are not vulnerable.

Know when Pyjwt gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY HIGH
NVD 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

No auth needed (PR:N), but exploitation depends on a pre-existing empty oct JWK beyond attacker control, so AC:H; token forgery breaks confidentiality and integrity, not availability (A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat 7.4 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

5
Analysis Updated
Oct 07, 2026 - 21:13 vuln.today
v2 - CVSS changed
Severity Changed
Oct 07, 2026 - 21:07 NVD
HIGH CRITICAL
CVSS changed
Oct 07, 2026 - 21:07 NVD
7.4 (HIGH) 9.1 (CRITICAL)
Patch available
Sep 28, 2026 - 21:02 EUVD
CVE Published
Sep 28, 2026 - 20:21 cve.org
HIGH 7.4

DescriptionNVD

PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, HMACAlgorithm.from_jwk is affected because PyJWK verification path used the decoded key without applying prepare_key validation. This occurs when a trusted JWK Set contains an oct entry with an empty k value. As a result, an attacker signs an HMAC token with the same zero-length key accepted by PyJWT. Consequently, forged token can carry arbitrary authenticated claims. This issue is fixed in version 2.14.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 196 pypi packages depend on pyjwt (134 direct, 63 indirect)

Ecosystem-wide dependent count for version 2.13.0.

Technical POC Analysis

CWE-347 (Improper Verification of Cryptographic Signature), specifically inconsistent validation of identical HMAC key material depending on which PyJWT entry point supplies it.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

Organizations using PyJWT versions 2.13.0 through 2.13.x in applications that verify JSON Web Tokens via the PyJWK or PyJWKSet path, with a misconfigured symmetric key entry containing an empty value, are vulnerable to token forgery. An unauthenticated attacker who is aware of this misconfiguration can forge valid tokens with arbitrary claims, potentially bypassing authentication and accessing sensitive data or performing unauthorized actions. A patch is available per vendor advisory, but publicly available exploit code exists, and leadership should prioritize remediation for affected services.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
High
PyJWT is a very widely used Python JWT library in web backends
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Pyjwt

View all
CVE-2026-102275 HIGH POC
8.2 Sep 28

Improper validation in PyJWT 2.1.0 through 2.14.0 allows an attacker who already holds a stolen sender-constrained (DPoP

CVE-2026-102274 HIGH POC
7.5 Sep 28

Denial of service in PyJWT 2.9.0 through 2.13.0: a single malformed RSA JWK embedded in a JWK Set aborts construction of

CVE-2026-101918 HIGH POC
7.5 Sep 28

Unauthenticated denial of service in the PyJWT Python library (versions 2.0.0a1 through 2.14.0) allows a remote attacker

CVE-2024-53861 HIGH POC
7.5 Nov 29

pyjwt is a JSON Web Token implementation in Python. Rated high severity (CVSS 7.5), this vulnerability is remotely explo

CVE-2026-48526 HIGH POC
7.4 May 28

Authentication bypass in PyJWT versions prior to 2.13.0 allows remote attackers to forge valid JSON Web Tokens by exploi

CVE-2026-103001 MEDIUM POC
6.5 Sep 30

Reuse of a caller-supplied options mapping in PyJWT 2.11.0 through 2.13.0 can silently leave registered-claim verificati

CVE-2026-102265 MEDIUM POC
5.3 Sep 28

Malformed JSON Web Token headers can cause an uncaught RecursionError in PyJWT 2.13.0 through versions before 2.14.0, re

CVE-2026-48525 MEDIUM POC
5.3 May 28

Uncontrolled resource consumption in PyJWT 2.8.0-2.12.1 exposes any service that verifies detached JWS tokens to unauthe

CVE-2026-102268 CRITICAL
9.1 Sep 28

Signature forgery in PyJWT before 2.14.0 allows an attacker who knows a target's asymmetric public key to forge HMAC-aut

CVE-2026-102267 CRITICAL
9.1 Sep 28

JWKS trust-boundary bypass in PyJWT's PyJWKClient allows a configured trusted JWKS endpoint that returns an HTTP 3xx red

CVE-2026-48524 LOW POC
3.7 May 28

Unconstrained outbound JWKS requests in PyJWT's PyJWKClient.get_signing_key() allow unauthenticated remote attackers to

CVE-2026-101917 HIGH
7.5 Sep 28

Unauthenticated attackers can amplify outbound HTTP traffic from any application that validates JWTs with PyJWT's PyJWKC

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise Micro 5.5 Not-Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Python 3 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy