Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify service verifying HS256 via empty oct JWK
-
ExploitCompute HMAC-SHA256 over crafted payload using zero-length key
-
ExecutionForge HS256 token with arbitrary claims
-
ImpactSubmit 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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).
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
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- 196 pypi packages depend on pyjwt (134 direct, 63 indirect)
Ecosystem-wide dependent count for version 2.13.0.
Articles & Coverage 1
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Improper validation in PyJWT 2.1.0 through 2.14.0 allows an attacker who already holds a stolen sender-constrained (DPoP
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
Unauthenticated denial of service in the PyJWT Python library (versions 2.0.0a1 through 2.14.0) allows a remote attacker
pyjwt is a JSON Web Token implementation in Python. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
Authentication bypass in PyJWT versions prior to 2.13.0 allows remote attackers to forge valid JSON Web Tokens by exploi
Reuse of a caller-supplied options mapping in PyJWT 2.11.0 through 2.13.0 can silently leave registered-claim verificati
Malformed JSON Web Token headers can cause an uncaught RecursionError in PyJWT 2.13.0 through versions before 2.14.0, re
Uncontrolled resource consumption in PyJWT 2.8.0-2.12.1 exposes any service that verifies detached JWS tokens to unauthe
Signature forgery in PyJWT before 2.14.0 allows an attacker who knows a target's asymmetric public key to forge HMAC-aut
JWKS trust-boundary bypass in PyJWT's PyJWKClient allows a configured trusted JWKS endpoint that returns an HTTP 3xx red
Unconstrained outbound JWKS requests in PyJWT's PyJWKClient.get_signing_key() allow unauthenticated remote attackers to
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 |
| SUSE Linux Enterprise Server 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 16.0 | Not-Affected |
| SUSE Linux Enterprise Server 16.1 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Not-Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Not-Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.2 | Not-Affected |
| openSUSE Leap 16.0 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Module for Public Cloud 12 | Not-Affected |
| SUSE Linux Enterprise Module for Public Cloud 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Not-Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Not-Affected |
| SUSE CaaS Platform 3.0 | Not-Affected |
| SUSE CaaS Platform 4.0 | Not-Affected |
| SUSE Enterprise Storage 6 | Not-Affected |
| SUSE Enterprise Storage 7 | Not-Affected |
| SUSE Enterprise Storage 7.1 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Public Cloud 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Public Cloud 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 12 | Not-Affected |
| SUSE Linux Enterprise Server 12 SP3 | Not-Affected |
| SUSE Linux Enterprise Server 12 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Not-Affected |
| SUSE Manager Proxy 4.0 | Not-Affected |
| SUSE Manager Proxy 4.1 | Not-Affected |
| SUSE Manager Proxy 4.2 | Not-Affected |
| SUSE Manager Proxy 4.3 | Not-Affected |
| SUSE Manager Proxy LTS 4.3 | Not-Affected |
| SUSE Manager Retail Branch Server 4.0 | Not-Affected |
| SUSE Manager Retail Branch Server 4.1 | Not-Affected |
| SUSE Manager Retail Branch Server 4.2 | Not-Affected |
| SUSE Manager Retail Branch Server 4.3 | Not-Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | Not-Affected |
| SUSE Manager Server 3.2 | Not-Affected |
| SUSE Manager Server 4.0 | Not-Affected |
| SUSE Manager Server 4.1 | Not-Affected |
| SUSE Manager Server 4.2 | Not-Affected |
| SUSE Manager Server 4.3 | Not-Affected |
| SUSE Manager Server LTS 4.3 | Not-Affected |
| SUSE OpenStack Cloud 7 | Not-Affected |
| openSUSE Leap 15.3 | Not-Affected |
| openSUSE Leap 15.4 | Not-Affected |
| openSUSE Leap 15.5 | Not-Affected |
| openSUSE Leap 15.6 | Not-Affected |
EUVD-2026-88484
GHSA-9j54-fg26-wv3r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB