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

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 4% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-28T15:10:19.141Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-jq35-7prp-9v3f, PYSEC-2026-176
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- jpadilla pyjwt: >= 2.9.0, < 2.13.0
- pyjwt (PyPI): from 2.9.0 before 2.13.0; from 2.9.0 before 2.12.1
- pyjwt_project pyjwt: from 2.9.0 before 2.13.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jq35-7prp-9v3f> (exploit, evidence, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48523> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2026-176.yaml> (web)

## Sources

- CVE List: [CVE-2026-48523](https://www.cve.org/CVERecord?id=CVE-2026-48523), CVE Terms of Use, modified 2026-05-28
- GitHub Advisory Database: [GHSA-jq35-7prp-9v3f](https://github.com/advisories/GHSA-jq35-7prp-9v3f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48523](https://nvd.nist.gov/vuln/detail/CVE-2026-48523), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-176](https://osv.dev/vulnerability/PYSEC-2026-176), CC-BY-4.0, modified 2026-06-02

---

Page: https://cve.day/CVE-2026-48523 · Whole record: https://cve.day/CVE-2026-48523.json · Rebuilt by cve.day 2026-11-25T22:59:22.938Z
