CVE catalog

CVE-2026-102268

PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, is_pem_format in jwt/utils.py is affected because is_pem_format does not recognize every PEM representation accepted by t

[CVE catalog]

Severity
Critical · CVSS 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.24% · Oct 27, 2026

PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, is_pem_format in jwt/utils.py is affected because is_pem_format does not recognize every PEM representation accepted by the cryptography loader. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a mutated public-key PEM as raw key bytes. As a result, HMACAlgorithm.prepare_key treats the unrecognized asymmetric public key as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpyjwtsid2.15.1-1fixed
Debianpyjwtforky2.15.1-1fixed
Debianpyjwttrixie2.10.1-2+deb13u1vulnerable
Debianpyjwttrixie-security2.10.1-2+deb13u1vulnerable
Debianpyjwtbookworm2.6.0-1+deb12u1vulnerable
Debianpyjwtbookworm-security2.6.0-1+deb12u1vulnerable
PyPIpyjwtNot reported2.14.0fixed
PyPIpyjwtNot reported2.14.0fixed
CpepyjwtNot reported2.14.0fixed
Ubuntupyjwtnoble2.7.0-1ubuntu0.3fixed
Ubuntupython3-jwtnoble2.7.0-1ubuntu0.3fixed
Ubuntu:Pro:16.04:LTSpyjwtNot reported1.0.0-0ubuntu1vulnerable
Ubuntu:Pro:16.04:LTSpyjwtNot reported1.3.0-1vulnerable
Ubuntu:Pro:16.04:LTSpyjwtNot reported1.3.0-1ubuntu0.1vulnerable
Ubuntu:Pro:16.04:LTSpyjwtNot reported1.3.0-1ubuntu0.1+esm1vulnerable
Ubuntu:Pro:16.04:LTSpyjwtNot reported1.3.0-1ubuntu0.1+esm2vulnerable
Ubuntu:Pro:16.04:LTSpyjwtNot reported1.3.0-1ubuntu0.1+esm3fixed
Ubuntu:Pro:18.04:LTSpyjwtNot reported1.4.2-1.1vulnerable
Ubuntu:Pro:18.04:LTSpyjwtNot reported1.5.3+ds1-1vulnerable
Ubuntu:Pro:18.04:LTSpyjwtNot reported1.5.3+ds1-1ubuntu0.1vulnerable
Ubuntu:Pro:18.04:LTSpyjwtNot reported1.5.3+ds1-1ubuntu0.1+esm1vulnerable
Ubuntu:Pro:18.04:LTSpyjwtNot reported1.5.3+ds1-1ubuntu0.1+esm2vulnerable
Ubuntu:Pro:18.04:LTSpyjwtNot reported1.5.3+ds1-1ubuntu0.1+esm3fixed
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.0-2vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-1vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-2ubuntu1vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-2ubuntu2vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-2ubuntu2.1vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-2ubuntu2.1+esm1vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-2ubuntu2.1+esm2vulnerable
Ubuntu:Pro:20.04:LTSpyjwtNot reported1.7.1-2ubuntu2.1+esm3fixed
Ubuntu:22.04:LTSpyjwtNot reported1.7.1-2ubuntu2vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.1.0-1vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.3.0-1vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.3.0-1ubuntu0.1vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.3.0-1ubuntu0.2vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.3.0-1ubuntu0.3vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.3.0-1ubuntu0.4vulnerable
Ubuntu:22.04:LTSpyjwtNot reported2.3.0-1ubuntu0.5fixed
Ubuntu:24.04:LTSpyjwtNot reported2.7.0-1vulnerable
Ubuntu:24.04:LTSpyjwtNot reported2.7.0-1ubuntu0.1vulnerable
Ubuntu:24.04:LTSpyjwtNot reported2.7.0-1ubuntu0.2vulnerable
Ubuntu:24.04:LTSpyjwtNot reported2.7.0-1ubuntu0.3fixed
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-2vulnerable
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-3vulnerable
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-3build1vulnerable
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-4vulnerable
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-4ubuntu1vulnerable
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-4ubuntu1.1vulnerable
Ubuntu:26.04:LTSpyjwtNot reported2.10.1-4ubuntu1.2fixed
Ubuntupyjwtpro1.7.0-2vulnerable
Ubuntupyjwtpro1.7.1-1vulnerable
Ubuntupyjwtpro1.7.1-2ubuntu1vulnerable
Ubuntupyjwtpro1.7.1-2ubuntu2vulnerable
Ubuntupyjwtpro1.7.1-2ubuntu2.1vulnerable
Ubuntupyjwtpro1.7.1-2ubuntu2.1+esm1vulnerable
Ubuntupyjwtpro1.7.1-2ubuntu2.1+esm2vulnerable
Ubuntupyjwtpro1.7.1-2ubuntu2.1+esm3fixed
Ubuntupyjwt22.041.7.1-2ubuntu2vulnerable
Ubuntupyjwt22.042.1.0-1vulnerable
Ubuntupyjwt22.042.3.0-1vulnerable
Ubuntupyjwt22.042.3.0-1ubuntu0.1vulnerable
Ubuntupyjwt22.042.3.0-1ubuntu0.2vulnerable
Ubuntupyjwt22.042.3.0-1ubuntu0.3vulnerable
Ubuntupyjwt22.042.3.0-1ubuntu0.4vulnerable
Ubuntupyjwt22.042.3.0-1ubuntu0.5fixed
Ubuntupyjwt24.042.7.0-1vulnerable
Ubuntupyjwt24.042.7.0-1ubuntu0.1vulnerable
Ubuntupyjwt24.042.7.0-1ubuntu0.2vulnerable
Ubuntupyjwt24.042.7.0-1ubuntu0.3fixed
Ubuntupyjwt26.102.10.1-4ubuntu1vulnerable
Ubuntupyjwt26.102.12.1-1vulnerable
Ubuntupyjwt26.102.13.0-1vulnerable
Ubuntupyjwt26.102.13.0-1ubuntu1fixed
Ubuntupyjwt26.042.10.1-2vulnerable
Ubuntupyjwt26.042.10.1-3vulnerable
Ubuntupyjwt26.042.10.1-3build1vulnerable
Ubuntupyjwt26.042.10.1-4vulnerable
Ubuntupyjwt26.042.10.1-4ubuntu1vulnerable
Ubuntupyjwt26.042.10.1-4ubuntu1.1vulnerable
Ubuntupyjwt26.042.10.1-4ubuntu1.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpyjwtsourcesid2.14.0-1not yet assignedNot reportedNot reported
Debianpyjwtsourceforky2.14.0-1not yet assignedNot reportedNot reported
Debianpyjwtsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianpyjwtsourcebookworm(unfixed)not yet assignedNot reportedNot reported
PyPIpyjwtPyPINot reported2.14.0Not reportedGHSA-FFC3-869F-JXW9Not reported
PyPIpyjwtPyPINot reported2.14.0Not reportedPYSEC-2026-4145Not reported
CpepyjwtcpeNot reported2.14.0Not reportedNVD-CVE-2026-102268Not reported
Ubuntupyjwtdebnoble2.7.0-1ubuntu0.3Not reportedNot reportedNot reported
Ubuntupython3-jwtdebnoble2.7.0-1ubuntu0.3Not reportedNot reportedNot reported
Ubuntu:Pro:16.04:LTSpyjwtUbuntu:Pro:16.04:LTSNot reported1.3.0-1ubuntu0.1+esm3Not reportedUSN-8916-1Not reported
Ubuntu:Pro:18.04:LTSpyjwtUbuntu:Pro:18.04:LTSNot reported1.5.3+ds1-1ubuntu0.1+esm3Not reportedUSN-8916-1Not reported
Ubuntu:Pro:20.04:LTSpyjwtUbuntu:Pro:20.04:LTSNot reported1.7.1-2ubuntu2.1+esm3Not reportedUSN-8916-1Not reported
Ubuntu:22.04:LTSpyjwtUbuntu:22.04:LTSNot reported2.3.0-1ubuntu0.5Not reportedUSN-8916-1Not reported
Ubuntu:24.04:LTSpyjwtUbuntu:24.04:LTSNot reported2.7.0-1ubuntu0.3Not reportedUSN-8916-1Not reported
Ubuntu:26.04:LTSpyjwtUbuntu:26.04:LTSNot reported2.10.1-4ubuntu1.2Not reportedUSN-8916-1Not reported
Ubuntupyjwtdebpro1.7.1-2ubuntu2.1+esm3Not reportedUBUNTU-CVE-2026-102268Not reported
Ubuntupyjwtdeb22.042.3.0-1ubuntu0.5Not reportedUBUNTU-CVE-2026-102268Not reported
Ubuntupyjwtdeb24.042.7.0-1ubuntu0.3Not reportedUBUNTU-CVE-2026-102268Not reported
Ubuntupyjwtdeb26.102.13.0-1ubuntu1Not reportedUBUNTU-CVE-2026-102268Not reported
Ubuntupyjwtdeb26.042.10.1-4ubuntu1.2Not reportedUBUNTU-CVE-2026-102268Not reported

Notes

[bookworm] pyjwt: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-jwt]Affected

    Source package: [pyjwt]

    Details (4)
    • 2.6.0-1+deb12u1 · all · bookworm

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt · debian · bookworm; nvd · pyjwt; nvd · pyjwt · debian · 12

    • 2.6.0-1+deb12u1 · all · bookworm

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt · debian · bookworm; nvd · pyjwt; nvd · pyjwt · debian · 12

    • 2.6.0-1+deb12u1 · all · bookworm-security

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt · debian · bookworm; nvd · pyjwt; nvd · pyjwt · debian · 12

    • 2.6.0-1+deb12u1 · all · bookworm-security

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt · debian · bookworm; nvd · pyjwt; nvd · pyjwt · debian · 12

[Debian 13 (Trixie)]

  • [python3-jwt]Affected

    Source package: [pyjwt]

    Details (4)
    • 2.10.1-2+deb13u1 · all · trixie

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

    • 2.10.1-2+deb13u1 · all · trixie

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

    • 2.10.1-2+deb13u1 · all · trixie-security

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

    • 2.10.1-2+deb13u1 · all · trixie-security

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

  • [python-jwt-doc]Affected

    Source package: [pyjwt]

    Details (4)
    • 2.10.1-2+deb13u1 · all · trixie

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

    • 2.10.1-2+deb13u1 · all · trixie

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

    • 2.10.1-2+deb13u1 · all · trixie-security

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

    • 2.10.1-2+deb13u1 · all · trixie-security

      Affected · Fixed: 1.3.0-1ubuntu0.1+esm3, 1.5.3+ds1-1ubuntu0.1+esm3, 1.7.1-2ubuntu2.1+esm3, 2.10.1-4ubuntu1.2, 2.3.0-1ubuntu0.5, 2.7.0-1ubuntu0.3

      nvd · pyjwt; nvd · pyjwt · debian · 13

Observed:

References