Skip to main content

PyJWT CVE-2026-102267

| EUVDEUVD-2026-88534 CRITICAL
Information Exposure (CWE-200)
2026-09-28 GitHub_M GHSA-9v7f-9g4p-ffgj
9.1
CVSS 3.1 · NVD
Temporal: 7.4
View

Attack ChainAIDerived

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

  1. Access
    Influence configured trusted JWKS endpoint
  2. Delivery
    Return attacker-controlled HTTP redirect
  3. Exploit
    PyJWKClient follows redirect to malicious host
  4. Execution
    Leak forwarded auth headers, serve rogue keys
  5. Impact
    Poison JWKS trust and forge accepted JWTs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation is NOT unconditional despite PR:N. Concrete prerequisites: (1) the application must use PyJWKClient (not just core jwt.decode) to fetch a remote JWKS; (2) the attacker must be able to influence the configured trusted JWKS endpoint so it returns an HTTP 3xx redirect to an attacker-chosen host (e.g. by compromising or manipulating that endpoint's response) - a token 'kid' alone does NOT trigger it; (3) for header/credential leakage, the application must pass caller-supplied request headers (such as an Authorization header) to PyJWKClient; (4) for forged-JWT acceptance, a 'mixed-configuration' deployment is required; (5) affected PyJWT version ≤ 2.13.0. Limiting factors: the need to control the trusted endpoint's redirect response and the dependence on header-forwarding/mixed configuration substantially narrow real-world exploitability below what the 9.1 base score suggests.

Impact

Signals conflict sharply. The published CVSS is 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), driven by network vector, no authentication, and dual High confidentiality/integrity impact. However, EPSS is only 0.16% (4th percentile), there is no CISA KEV listing, no public exploit is referenced, and CISA SSVC records Exploitation=none and Automatable=no (only Technical Impact=total aligns with the high CVSS). The CVSS AC:L is questionable: the GHSA advisory states exploitation 'requires an attacker-influenced redirect from the configured JWKS endpoint' AND caller-supplied request headers in a 'mixed-configuration application' - those are non-trivial, deployment-specific preconditions that argue for higher attack complexity than AC:L implies. Net assessment: this is a genuine trust-boundary flaw in a very popular library and worth prompt patching, but it is a high-CVSS / lower-real-world-risk case rather than an active-exploitation emergency - the inflated base score does not reflect the layered conditions actually required. Verify the AC:L rating against the described redirect-and-header precondition with the vendor.

Exploit ScenarioDerived

An attacker who can influence the response of an application's configured trusted JWKS endpoint causes it to return an HTTP redirect to a host the attacker controls. Because PyJWKClient (≤ 2.13.0) follows redirects without revalidating them against the JWKS trust boundary, it forwards any caller-supplied request headers (potentially leaking credentials) to the attacker host and consumes the redirected response as authoritative key material, enabling JWKS trust poisoning and forged-JWT acceptance. No public exploit identified at time of analysis; the GHSA advisory includes a regression test but not a weaponized PoC.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

JWKS trust-boundary bypass in PyJWT's PyJWKClient allows a configured trusted JWKS endpoint that returns an HTTP 3xx redirect to steer the client to an attacker-chosen host, which is then consumed as authoritative key material; the same mechanism can forward caller-supplied request headers such as Authorization to that destination. Only PyJWT 2.13.0 and earlier are affected (fixed in 2.14.0), and exploitation is not unconditional: it requires the application to actually use PyJWKClient for remote JWKS fetching, attacker influence over the trusted endpoint's redirect response, and - for credential leakage - caller-supplied headers passed into the client, or - for forged-JWT acceptance - a mixed-configuration deployment. There is no confirmed active exploitation (not in CISA KEV) and no public exploit code identified at time of analysis; EPSS is low at 0.16% (4th percentile), and CISA SSVC rates Exploitation as 'none' and Automatable as 'no', so the practical risk sits well below the headline 9.1 base score.

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

PyJWKClient in PyJWT prior to 2.14.0 follows HTTP redirects issued by a configured trusted JWKS endpoint without revalidating the redirect target against the JWKS trust boundary, so a redirect to an attacker-influenced host causes PyJWT to fetch and consume that response as key material. This can disclose forwarded credentials (for example an Authorization header configured on the client) and can substitute the verification keys used to validate JWTs, giving both confidentiality and integrity impact (CVSS 3.1: 7.4 High, AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:N, unauthenticated per the vector). Exploitation requires the trusted, integrity-protected JWKS endpoint to actually return an attacker-influenced redirect (open redirect on the trusted host, MITM/DNS position, or a compromised JWKS host), which is why the assessed vector assigns high attack complexity; no public exploit code was identified at time of analysis and the issue is fixed in 2.14.0.

RemediationAI

Vendor-released patch: PyJWT 2.14.0 (released 2026-09-11), the first release containing commit 0a795b8e1f6ef08f634aa7086fc41cc6d5ce3e56, which disables automatic redirects in PyJWKClient; upgrade with 'pip install --upgrade PyJWT==2.14.0' or a pinned later 2.x, and verify the resolved version in your lockfile since transitive dependencies may pin older releases. Full details are in the upstream advisory at https://github.com/jpadilla/pyjwt/security/advisories/GHSA-9v7f-9g4p-ffgj and the release tag at https://github.com/jpadilla/pyjwt/releases/tag/2.14.0. Where immediate upgrade is impossible, compensating controls in order of effectiveness: stop passing caller- or request-derived headers (especially Authorization or bearer tokens) into PyJWKClient, since header forwarding is what turns this into credential disclosure - the trade-off is that you lose per-request auth toward the JWKS host and may need that host to be publicly readable; wrap JWKS fetching in your own HTTP client configured with redirects disabled (e.g. requests with allow_redirects=False) and hand the fetched JWKS to PyJWKClient via a cached/local source, which requires a small amount of custom code and cache-invalidation logic; strictly allowlist the configured JWKS URL and, if feasible, pin the TLS certificate or public key of the JWKS host so a redirected connection fails certificate validation - effective but operationally brittle under certificate rotation; and monitor outbound 3xx responses and unexpected JWKS hostnames as detection for exploitation attempts. Also rotate any credentials that may have been forwarded to a redirect destination if you suspect prior exposure, and be aware that no public exploit code is currently identified, so opportunistic scanning pressure remains low.

Affected VersionsENISA

pyjwt < 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

PyJWT is the widely used Python implementation of JWT/JWS/JWE, and PyJWKClient is its helper for fetching a JSON Web Key Set from a remote, pre-configured JWKS URL and selecting the key matching a token's 'kid'. Internally the client performed the fetches with urllib.request.urlopen(), which installs urllib's default HTTPRedirectHandler and therefore silently follows 3xx responses to any destination. Because the client treated the final response body as the key set without revalidating the redirect target against the original JWKS trust boundary, a redirect from the trusted endpoint could substitute attacker-controlled key material (JWKS trust poisoning) and, when the caller supplied custom headers, replay those headers to the redirect destination - the classic CWE-200 information-exposure pattern, here with an integrity/forgery consequence. The upstream fix (commit 0a795b8e1f6ef08f634aa7086fc41cc6d5ce3e56) adds a _NoRedirectHandler subclass of urllib.request.HTTPRedirectHandler whose redirect_request() returns None, and builds an opener with that handler (plus an explicit HTTPSHandler when an ssl_context is configured) instead of calling urlopen() directly; the destination is never contacted on redirect, and regression tests confirm normal fetches, headers, caching, error handling, timeouts and SSL context behavior are preserved. Note the divergence between the vendor-supplied CVSS vector (AC:L, 9.1) and the independent assessment (AC:H), reflecting how much attacker control over the trusted endpoint the exploit genuinely requires.

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
CIRCL (temporal) 7.4 HIGH
vuln.today AI 7.4 HIGH

Remote and unauthenticated (AV:N/PR:N), but AC:H because it requires an attacker-influenced redirect from the trusted endpoint plus header-forwarding/mixed config; header leak gives C:H and key substitution gives I:H, no availability impact.

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 - 20:43 vuln.today
v2 - CVSS changed
Severity Changed
Oct 07, 2026 - 20:37 NVD
HIGH CRITICAL
CVSS changed
Oct 07, 2026 - 20:37 NVD
7.4 (HIGH) 9.1 (CRITICAL)
Patch available
Sep 28, 2026 - 22:02 EUVD
CVE Published
Sep 28, 2026 - 20:23 cve.org
HIGH 7.4

DescriptionNVD

PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, PyJWT PyJWKClient is affected because redirect destinations are not revalidated against the JWKS trust boundary. This occurs when a configured trusted JWKS endpoint returns an attacker-influenced redirect. As a result, PyJWKClient follows the redirect and consumes the redirected response as key material. Consequently, forwarded credentials may be disclosed or verification keys may be substituted. 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
  • 17 pypi packages depend on pyjwt (16 direct, 1 indirect)

Ecosystem-wide dependent count for version 2.14.0.

Technical POC Analysis

Advisory: GHSA-9v7f-9g4p-ffgj (canonical), duplicate GHSA-43g3-98cx-x446.

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

Executive ViewAI

Why It Matters

PyJWT's remote key-fetching component (PyJWKClient) in versions 2.13.0 and earlier can be redirected by a compromised or attacker-influenced JWKS endpoint to fetch signing keys from a host of the attacker's choosing, potentially allowing forged authentication tokens to be accepted in certain deployments and, in narrower cases, exposure of caller-supplied request headers such as Authorization. Because PyJWT underpins token validation in many Python services, any application relying on remote JWKS fetching should be inventoried and remediated promptly, though exploitation requires specific configuration preconditions and no public exploit code or active exploitation has been identified.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
High
de facto standard JWT library across Python web applications
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 No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Pyjwt

View all
CVE-2026-102266 CRITICAL POC
9.1 Sep 28

Forged HS256 JSON Web Tokens can be accepted as authentic by PyJWT (pip package PyJWT) versions 2.13.0 through 2.13.x wh

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-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 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise Micro 5.5 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Module for Python 3 15 SP7 Affected

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