Is pyjwt 2.13 vulnerable?

PyPI · 1 release from 2.13.0 to 2.13.0 · latest pyjwt is 2.15.1 · checked 18 Nov 2026

Yes: 15 known advisories

Yes. pyjwt 2.13.0, the last 2.13 release, is affected by 15 known security advisories (1 critical, 6 high, 8 medium), including CVE-2026-102268, CVE-2026-102266, CVE-2026-102273. At least one has no fixed release yet.

Is your project on an affected pyjwt?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting pyjwt 2.13.0

  • HighGHSA-pxh4-856f-4h8922 Oct 2026

    PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery

    Affected
    <2.14.0
    Fixed in
    2.14.0
  • MediumCVE-2026-102275GHSA-x33g-cr3x-64495 Oct 2026

    PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion

    Affected
    >=2.1.0 <2.15.0
    Fixed in
    2.15.0
  • MediumCVE-2026-103001GHSA-gvp8-978c-rx2q30 Sept 2026

    PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse

    Affected
    >=2.11.0 <=2.13.0
    Fixed in
    No fix released
  • MediumCVE-2026-101918GHSA-42vr-xj54-vc7v30 Sept 2026

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

    Affected
    >=2.0.0a1 <2.15.0
    Fixed in
    2.15.0
  • MediumCVE-2026-102270GHSA-jwrc-g2q2-pq5p30 Sept 2026

    PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

    Affected
    <2.14.0
    Fixed in
    2.14.0
  • HighCVE-2026-102266GHSA-9j54-fg26-wv3r29 Sept 2026

    PyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation

    Affected
    >=2.13.0 <2.14.0
    Fixed in
    2.14.0
  • MediumCVE-2026-102265GHSA-8wjv-2p76-386329 Sept 2026

    PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header

    Affected
    >=2.13.0 <2.14.0
    Fixed in
    2.14.0
  • MediumCVE-2026-102269GHSA-hxm8-2xgr-2p9m29 Sept 2026

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

    Affected
    <2.14.0
    Fixed in
    2.14.0
  • CriticalCVE-2026-102268GHSA-ffc3-869f-jxw929 Sept 2026

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

    Affected
    <2.14.0
    Fixed in
    2.14.0
  • HighCVE-2026-102273GHSA-w2cx-738m-mc7w29 Sept 2026

    PyJWT accepts public JWK containers as HMAC secrets

    Affected
    >=2.13.0 <2.14.0
    Fixed in
    2.14.0
  • HighCVE-2026-102267GHSA-9v7f-9g4p-ffgj29 Sept 2026

    PyJWT: PyJWKClient follows redirects when fetching JWKS

    Affected
    <2.14.0
    Fixed in
    2.14.0
  • HighCVE-2026-102271GHSA-p4g4-x82p-q77329 Sept 2026

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

    Affected
    >=2.4.0 <2.14.0
    Fixed in
    2.14.0
  • HighCVE-2026-102272GHSA-r6x4-923q-g94729 Sept 2026

    PyJWT BOM Bypass

    Affected
    >=2.13.0 <2.14.0
    Fixed in
    2.14.0
  • MediumCVE-2026-101917GHSA-2gx3-rcp4-g85q29 Sept 2026

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

    Affected
    <2.14.0
    Fixed in
    2.14.0
  • MediumCVE-2026-102274GHSA-w6j9-cwv2-h6wq29 Sept 2026

    PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set

    Affected
    >=2.9.0 <2.14.0
    Fixed in
    2.14.0

Which of your client projects are still on pyjwt 2.13?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact pyjwt version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other pyjwt versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.