Install
PyJWT
JSON Web Token implementation in Python
2.15.1Latest, 28 Sep 2026
752MDownloads, last month
0Advisories on the latest
40Advisories, all versions
MITLicence
5.7KStars
6.9/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery GHSA-pxh4-856f-4h89 | Fixed in 2.14.0 | 22 Oct 2026 |
| Moderate | PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion CVE-2026-102275 | Fixed in 2.15.0 | 5 Oct 2026 |
| PyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524) CVE-2026-101917 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False) CVE-2026-101918 | Fixed in 2.15.0 | 1 Oct 2026 | |
| PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header CVE-2026-102265 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation CVE-2026-102266 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: PyJWKClient follows redirects when fetching JWKS CVE-2026-102267 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard CVE-2026-102268 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse CVE-2026-103001 | No fix listed | 1 Oct 2026 | |
| PyJWT: Non-canonical signature segments enable raw-token revocation bypass CVE-2026-102269 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: ReDoS vulnerability when calling the `is_pem_format` function. CVE-2026-102270 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard CVE-2026-102271 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT BOM Bypass CVE-2026-102272 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT accepts public JWK containers as HMAC secrets CVE-2026-102273 | Fixed in 2.14.0 | 1 Oct 2026 | |
| PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set CVE-2026-102274 | Fixed in 2.14.0 | 1 Oct 2026 |
In the news
- FastAPI JWT Authentication in 2026: A Complete Login API in One File (Argon2 + PyJWT, Tested) dev.to, 12 Oct 2026
- CVE-2026-103001: CVE-2026-103001: State Pollution in PyJWT Option Merging Leads to Claim Verification Bypass dev.to, 30 Sep 2026
- How to upgrade pyjwt version from 1.6 to 2.4 or above through linux shell? stackoverflow.com, 25 Jun 2024
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.