Skip to main content

PyJWT CVE-2026-48524

| EUVDEUVD-2026-32916 LOW
Improper Cleanup on Thrown Exception (CWE-460)
2026-05-28 GitHub_M GHSA-fhv5-28vv-h8m8 PYSEC-2026-177
3.7
CVSS 3.1 · GitHub Advisory

Severity by source

GitHub Advisory PRIMARY
3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch available
May 28, 2026 - 17:01 EUVD
Analysis Generated
May 28, 2026 - 15:55 vuln.today

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 40,697 pypi packages depend on pyjwt (4,610 direct, 36,482 indirect)

Ecosystem-wide dependent count for version 2.13.0.

DescriptionGitHub Advisory

PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient.get_signing_key() forces a fresh HTTP request to the JWKS endpoint for every JWT with an unknown kid value, with no rate limiting. Since kid comes from the unverified token header, an attacker can trigger unlimited outbound requests. The vulnerability surfaces only when a JWKS fetch fails; an attacker can attempt to provoke that with sustained unknown-kid traffic, but the outcome depends on upstream JWKS-endpoint behavior (rate limiting, transient errors) which is beyond the attacker's control. This vulnerability is fixed in 2.13.0.

AnalysisAI

Unconstrained outbound JWKS requests in PyJWT's PyJWKClient.get_signing_key() allow unauthenticated remote attackers to amplify HTTP traffic toward a downstream JWKS endpoint by submitting JWTs carrying arbitrary, unrecognized kid values. All PyJWT versions prior to 2.13.0 are affected when the PyJWKClient class is used for signature verification. The availability impact is low (CVSS A:L) and exploitation success is gated on the upstream JWKS provider exhibiting rate limiting or transient failures; no public exploit code exists and this CVE does not appear in CISA KEV.

Technical ContextAI

PyJWT is a widely-deployed Python library for encoding and decoding JSON Web Tokens per RFC 7519. The PyJWKClient class provides JWKS-backed signature verification by fetching public keys from a remote JWKS URI. The vulnerable code path is get_signing_key(), which unconditionally issues a fresh outbound HTTP request to the JWKS endpoint whenever the kid (Key ID) claim in an incoming JWT header is not found in a local cache. The critical flaw is that the kid field is parsed from the unverified token header - base64-decoded but not yet cryptographically validated - meaning any caller can inject arbitrary kid values without needing a valid signature. The absence of rate limiting or negative-result caching for unknown kids means each such crafted token generates a distinct JWKS fetch. The assigned CWE-460 (Improper Cleanup on Thrown Exception) appears to be a mismatch; the root cause more closely aligns with CWE-770 (Allocation of Resources Without Limits or Throttling), and this discrepancy should be verified against the NVD record. The affected CPE is cpe:2.3:a:jpadilla:pyjwt:*:*:*:*:*:*:*:*, covering all versions without a stated lower bound.

RemediationAI

Upgrade PyJWT to version 2.13.0 or later, which is the vendor-confirmed fix as documented in GitHub Security Advisory GHSA-fhv5-28vv-h8m8 (https://github.com/jpadilla/pyjwt/security/advisories/GHSA-fhv5-28vv-h8m8). For environments that cannot immediately upgrade, implement application-layer rate limiting on JWT verification endpoints to cap the rate at which tokens with unknown kid values are processed per source IP or session - this directly limits the attacker's ability to generate sustained JWKS fetch volume. Alternatively, maintain an explicit allowlist of valid kid values and reject tokens presenting unrecognized kids before invoking get_signing_key(), eliminating the outbound request entirely for unknown keys; note that this requires operational overhead to update the allowlist when identity providers rotate keys. Aggressive local caching of JWKS responses with a short TTL (e.g., 60 seconds) can also reduce fetch frequency but does not eliminate the root cause for novel unknown kids.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2026-55255 HIGH POC
8.4 Jun 19

Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing

Share

CVE-2026-48524 vulnerability details – vuln.today

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