---
schema_version: '1.0'
id: security-20260812-43956d
title: 'CVE-2026-48524: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled
  kid values (DoS)'
url: https://osv.dev/vulnerability/GHSA-fhv5-28vv-h8m8
url_hash: 43956db16d38ad9c2f921a394a8eff0f059427dea4c2223f8e5fe6cc408e3ef1
canonical_url: https://osv.dev/vulnerability/GHSA-fhv5-28vv-h8m8
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-48524
- GHSA-fhv5-28vv-h8m8
- severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- pyjwt
- PyPI
lang: en
published_at: '2026-06-15T17:28:46Z'
fetched_at: '2026-08-12T16:00:04.727080Z'
updated_at: '2026-08-22T14:49:09Z'
status: published
content_hash: 651c2bfeffe6533db0e71676f988227e9e609b714dbe80df71e22b98b9f657cb
content_changed_at: '2026-08-22T13:15:21.871838Z'
license_note: full
summary: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid
  values (DoS)
summary_source: rss
summary_en: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid
  values (DoS)
summary_omitted_reason: null
redistribution: true
keywords_en:
- attacker-controlled
- CVE
- CVE-2026-48524
- DoS
- endpoint
- GHSA-fhv5-28vv-h8m8
- JWKS
- kid
- library vulnerability
- Now & Next® Workspace & Endpoint Security Summit
- PyJWKClient
- pyjwt
- PyPI
- requests
- severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- software security
- unbounded
- values
- via
entities_en:
- name: CVE
  type: data
- name: Now & Next® Workspace & Endpoint Security Summit
  type: event
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
- name: Now & Next® Workspace & Endpoint Security Summit
  type: event
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:49:05Z'
---

# CVE-2026-48524: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)

## TL;DR
PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)

## Key Points
- cve / CVE-2026-48524 / GHSA-fhv5-28vv-h8m8 / severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L / pyjwt / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
**Advisory:** GHSA-fhv5-28vv-h8m8 (CVE-2026-48524)

**Details:**
> [!NOTE]
>  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. Impact is reduced auth availability until the next successful fetch, not complete denial of service.

## Summary
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.

Additionally, fetch_data() finally block clears the JWKS cache on network error.

## Root Cause
jwt/jwks_client.py:172-198 - get_signing_key(kid) calls get_signing_keys(refresh=True) for unknown kids, bypassing TTL cache with no cooldown.
jwt/jwks_client.py:120-122 - finally block writes None to cache on error, clearing valid data.

## Impact
- DoS against JWKS endpoint (unlimited requests per invalid token)
- DoS against application (network I/O latency)
- Cascading failure (rate limiting clears cache, breaking legitimate auth)

## Suggested Fix
1. Add refresh cooldown (refuse refresh more than once per TTL period)
2. Move cache write from finally to else block

## Affected Versions
All versions with PyJWKClient (2.4.0 through 2.12.1)

**References:**
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-fhv5-28vv-h8m8
- https://nvd.nist.gov/vuln/detail/CVE-2026-48524
- https://github.com/github/advisory-database/pull/8522
- https://github.com/jpadilla/pyjwt
- https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2026-177.yaml

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-fhv5-28vv-h8m8_

## Source
元記事: [CVE-2026-48524: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)](https://osv.dev/vulnerability/GHSA-fhv5-28vv-h8m8) — published 2026-06-15T17:28:46Z
