Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. PyJWT
  4. ›
  5. CVE-2026-48524

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

June 15, 2026

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-48524 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.13.0

Fixed versions

  • 2.13.0

Solution

Upgrade to version 2.13.0 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-460: Improper Cleanup on Thrown Exception
  • CWE-755: Improper Handling of Exceptional Conditions

Source file

pypi/PyJWT/CVE-2026-48524.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:57 +0000.