{"id":"CVE-2026-48523","published":"2026-05-28T15:10:19Z","modified":"2026-05-28T15:27:49Z","title":"PyJWT: Algorithm allow-list bypass when decoding with `PyJWK` / `PyJWKClient` keys","vendor":"jpadilla","product":"pyjwt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00127,"percentile":0.02402,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jq35-7prp-9v3f","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":0.48},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"jpadilla","affectedVersions":[{"vendor":"jpadilla","product":"pyjwt","versions":[">= 2.9.0, < 2.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T15:27:44.771049Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyjwt","vulnerableRanges":[">=2.9.0, <2.13.0",">=2.9.0, <2.12.1"],"patched":["2.13.0","2.12.1"],"from":["GHSA-jq35-7prp-9v3f","PYSEC-2026-176"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-32918","exploited":false,"provenance":"source"}}