PyPI (Python)Worst: Critical24 advisories
pyjwt: known vulnerabilities
pyjwt has 24 reviewed security advisories in the GitHub Advisory Database — 1 critical, 10 high, 11 moderate, 2 low. The most recent was published 2026-10-22. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pyjwt versions running across your servers, containers and images, and ranks what to patch first.
How to fix pyjwt
Upgrade pyjwt to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade pyjwt (pin pyjwt>=2.14.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (24)
PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery
High 7.4 CWE-347
— Affected: before 2.14.0. Fixed in 2.14.0. Published 2026-10-22. GHSA-pxh4-856f-4h89
PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse
Moderate 6.5 CWE-471
— Affected: 2.11.0 through 2.13.0. No fixed release is listed. Published 2026-09-30. GHSA-gvp8-978c-rx2q · CVE-2026-103001
PyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524)
Moderate 5.3 CWE-770
— Affected: before 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-2gx3-rcp4-g85q · CVE-2026-101917
PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
Moderate 5.3 CWE-248
— Affected: from 2.0.0a1 up to 2.15.0. Fixed in 2.15.0. Published 2026-09-28. GHSA-42vr-xj54-vc7v · CVE-2026-101918
PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
Moderate 5.3 CWE-674
— Affected: from 2.13.0 up to 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-8wjv-2p76-3863 · CVE-2026-102265
PyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
High 7.4 CWE-347
— Affected: from 2.13.0 up to 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-9j54-fg26-wv3r · CVE-2026-102266
PyJWT: PyJWKClient follows redirects when fetching JWKS
High 7.4 CWE-200 CWE-345 CWE-918
— Affected: before 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-9v7f-9g4p-ffgj · CVE-2026-102267
PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard
Critical 9.1 CWE-347
— Affected: before 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-ffc3-869f-jxw9 · CVE-2026-102268
PyJWT: Non-canonical signature segments enable raw-token revocation bypass
Moderate 4.8 CWE-180
— Affected: before 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-hxm8-2xgr-2p9m · CVE-2026-102269
PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.
Moderate 4.4 CWE-1333
— Affected: before 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-jwrc-g2q2-pq5p · CVE-2026-102270
PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
High 7.4 CWE-347
— Affected: from 2.4.0 up to 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-p4g4-x82p-q773 · CVE-2026-102271
PyJWT BOM Bypass
High 7.4 CWE-347
— Affected: from 2.13.0 up to 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-r6x4-923q-g947 · CVE-2026-102272
PyJWT accepts public JWK containers as HMAC secrets
High 7.4 CWE-347
— Affected: from 2.13.0 up to 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-w2cx-738m-mc7w · CVE-2026-102273
PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set
Moderate 5.9 CWE-755
— Affected: from 2.9.0 up to 2.14.0. Fixed in 2.14.0. Published 2026-09-28. GHSA-w6j9-cwv2-h6wq · CVE-2026-102274
PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion
Moderate 6.5 CWE-345 CWE-348
— Affected: from 2.1.0 up to 2.15.0. Fixed in 2.15.0. Published 2026-09-28. GHSA-x33g-cr3x-6449 · CVE-2026-102275
PyJWKClient: missing scheme allowlist enables CVE-2024-21643-class SSRF + token forgery via file://, ftp://, data: schemes
Moderate 4.2 CWE-441 CWE-918
— Affected: from 2.0.0 up to 2.13.0. Fixed in 2.13.0. Published 2026-05-28. GHSA-993g-76c3-p5m4 · CVE-2026-48522
PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)
Low 3.7 CWE-460 CWE-755
— Affected: from 2.0.0 up to 2.13.0. Fixed in 2.13.0. Published 2026-05-28. GHSA-fhv5-28vv-h8m8 · CVE-2026-48524
PyJWT: Algorithm allow-list bypass when decoding with `PyJWK` / `PyJWKClient` keys
Moderate 5.4 CWE-347
— Affected: from 2.9.0 up to 2.13.0. Fixed in 2.13.0. Published 2026-05-28. GHSA-jq35-7prp-9v3f · CVE-2026-48523
PyJWT: Unauthenticated DoS via unbounded Base64URL decoding of unused payload segment in b64=false detached JWS
Moderate 5.3 CWE-400
— Affected: from 2.8.0 up to 2.13.0. Fixed in 2.13.0. Published 2026-05-28. GHSA-w7vc-732c-9m39 · CVE-2026-48525
PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed
High 7.4 CWE-287 CWE-347
— Affected: before 2.13.0. Fixed in 2.13.0. Published 2026-05-28. GHSA-xgmm-8j9v-c9wx · CVE-2026-48526
PyJWT accepts unknown `crit` header extensions
High 7.5 CWE-345 CWE-863
— Affected: before 2.12.0. Fixed in 2.12.0. Published 2026-03-13. GHSA-752w-5fwx-jx9f · CVE-2026-32597
PyJWT Issuer field partial matches allowed
Low 2.2 CWE-697
— Affected: from 2.10.0 up to 2.10.1. Fixed in 2.10.1. Published 2024-11-29. GHSA-75c5-xw7c-p5pm · CVE-2024-53861
Key confusion through non-blocklisted public key formats
High 7.4 CWE-327
— Affected: from 1.5.0 up to 2.4.0. Fixed in 2.4.0. Published 2022-05-24. GHSA-ffqj-6fqr-9h24 · CVE-2022-29217
PyJWT vulnerable to key confusion attacks
High 7.5
— Affected: before 1.5.1. Fixed in 1.5.1. Published 2017-08-24. GHSA-r9jw-mwhq-wp62 · CVE-2017-11424
Find pyjwt across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.