Vulnerability · Published May 28, 2026 · Assigned by GitHub_M

CVE-2026-48523PyJWT: Algorithm allow-list bypass when decoding with `PyJWK` / `PyJWKClient` keys

Medium 5.4

In plain English

A medium-severity security flaw in pyjwt from jpadilla. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.1%top 97.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1, there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete() are called with a PyJWK key. The token header alg is checked against the caller-supplied algorithms allow-list, but signature verification is performed with the algorithm bound to the PyJWK object instead of the header algorithm. An attacker who controls a registered JWK/JWKS private key can sign with a disallowed algorithm, advertise an allowed algorithm in the JWT header, and still be accepted. The issue affects the documented PyJWKClient.get_signing_key_from_jwt(...) flow. This vulnerability is fixed in 2.13.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13pyjwtno fix listedDEBIAN-CVE-2026-48523
Debian:14pyjwt2.13.0-1DEBIAN-CVE-2026-48523
PyPIpyjwt2.12.1PYSEC-2026-176
PyPIpyjwt2.13.0GHSA-jq35-7prp-9v3f
Ubuntu:22.04:LTSpyjwt2.3.0-1ubuntu0.4USN-8823-1
Ubuntu:24.04:LTSpyjwt2.7.0-1ubuntu0.2USN-8823-1
Ubuntu:25.10pyjwtno fix listedUBUNTU-CVE-2026-48523
Ubuntu:26.04:LTSpyjwt2.10.1-4ubuntu1.1USN-8823-1
Ubuntu:26.04:LTSpyjwt2.10.1-4ubuntu1.1UBUNTU-CVE-2026-48523

Affected products (as reported)

VendorProductVersions
jpadilla pyjwt >= 2.9.0, < 2.13.0

Weakness: CWE-347 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

References