Loading advisory.
Loading advisory.
PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)
[!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.
Published 2026-05-28 15:07 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| pyjwt | PyPI | >= 2.0.0, < 2.13.0 < 2.13.0 versions 2.0.0, 2.0.1, 2.1.0, 2.10.0, 2.10.1, 2.11.0, 2.12.0, 2.12.1, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.8.0, 2.9.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4 and 34 more | 2.13.0 | pip install --upgrade 'pyjwt>=2.13.0' |
[!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.
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.
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.
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)
Add refresh cooldown (refuse refresh more than once per TTL period)
Move cache write from finally to else block
All versions with PyJWKClient (2.4.0 through 2.12.1)
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.003 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.003 | 0.004 | v2026.06.15 |