Is pyjwt 2.8.0 vulnerable?

pyjwt 2.8.0, a Python package on PyPI. All 2 versions we track · PyPI page

15 vulnerabilities, 1 critical, 6 high

Upgrade pyjwt from 2.8.0 to 2.15.0 or later; that fixes 14 of the 15.

Known vulnerabilities in pyjwt 2.8.0

  • Critical CVSS 9.1

    CVE-2026-102268: PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard

    GHSA-ffc3-869f-jxw9 · published 29 Sep 2026 · fixed in 2.14.0

  • High CVSS 7.5

    CVE-2026-32597: PyJWT accepts unknown `crit` header extensions

    GHSA-752w-5fwx-jx9f · published 13 Mar 2026 · fixed in 2.12.0

  • High CVSS 7.4

    CVE-2026-102267: PyJWT: PyJWKClient follows redirects when fetching JWKS

    GHSA-9v7f-9g4p-ffgj · published 29 Sep 2026 · fixed in 2.14.0

  • High CVSS 7.4

    CVE-2026-102271: PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard

    GHSA-p4g4-x82p-q773 · published 29 Sep 2026 · fixed in 2.14.0

  • High CVSS 7.4

    GHSA-pxh4-856f-4h89: PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery

    GHSA-pxh4-856f-4h89 · published 22 Oct 2026 · fixed in 2.14.0

  • High CVSS 7.4

    CVE-2026-48526: PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed

    GHSA-xgmm-8j9v-c9wx · published 15 Jun 2026 · fixed in 2.13.0

  • High CVSS 7.0

    CVE-2025-45768

    PYSEC-2025-183 · published 31 Jul 2025 · no fixed version yet

  • Medium CVSS 5.3

    CVE-2026-101917: PyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524)

    GHSA-2gx3-rcp4-g85q · published 29 Sep 2026 · fixed in 2.14.0

  • Medium CVSS 5.3

    CVE-2026-101918: PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)

    GHSA-42vr-xj54-vc7v · published 30 Sep 2026 · fixed in 2.15.0

  • Medium CVSS 4.2

    CVE-2026-48522: PyJWKClient: missing scheme allowlist enables CVE-2024-21643-class SSRF + token forgery via file://, ftp://, data: schemes

    GHSA-993g-76c3-p5m4 · published 15 Jun 2026 · fixed in 2.13.0

  • Medium CVSS 4.8

    CVE-2026-102269: PyJWT: Non-canonical signature segments enable raw-token revocation bypass

    GHSA-hxm8-2xgr-2p9m · published 29 Sep 2026 · fixed in 2.14.0

  • Medium CVSS 4.4

    CVE-2026-102270: PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

    GHSA-jwrc-g2q2-pq5p · published 30 Sep 2026 · fixed in 2.14.0

  • Medium CVSS 5.3

    CVE-2026-48525: PyJWT: Unauthenticated DoS via unbounded Base64URL decoding of unused payload segment in b64=false detached JWS

    GHSA-w7vc-732c-9m39 · published 15 Jun 2026 · fixed in 2.13.0

  • Medium CVSS 6.5

    CVE-2026-102275: PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion

    GHSA-x33g-cr3x-6449 · published 5 Oct 2026 · fixed in 2.15.0

  • Low CVSS 3.7

    CVE-2026-48524: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)

    GHSA-fhv5-28vv-h8m8 · published 15 Jun 2026 · fixed in 2.13.0

How to fix it

With requirements.txt:

# in requirements.txt: change the line to pyjwt==2.15.0
pip install -r requirements.txt
  • 1 advisory(ies) have no fixed version yet; check them for workarounds.
  • If it is an indirect dependency, upgrade the package that depends on it, or add a minimum version constraint for it (e.g. in constraints.txt, or as a dependency in pyproject.toml).
  • Check the package's changelog for breaking changes (especially across major versions), update the lockfile with the package manager (never by hand), and run your tests.

Other versions of pyjwt

Newest version we track without known advisories: 2.15.1.

VersionKnown vulnerabilitiesHighest severity
2.15.1 0 None
2.8.0 (this page) 15 Critical

Every version of pyjwt →

Licence

pyjwt 2.8.0 declares MIT .

Check your whole project

pyjwt is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.

Get emailed about new advisories for pyjwt (free, no account)

About this data

Vulnerability data: OSV.dev, last checked 22 November 2026. Licence: deps.dev. AIssue checks the versions on this page every day. Severity comes from the advisory's own rating when it has one, else from its CVSS score.