SecurityContext

CVE-2026-102268: PyJWT - Authentication Bypass

  • Cve: CVE-2026-102268
  • Name: PyJWT - Authentication Bypass
  • Description: 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.
  • Impact: Attackers can forge authenticated HMAC tokens, bypassing authentication and potentially gaining unauthorized access.
  • Remediation: Update to version 2.14.0 or later.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: broken_authentication
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.00266
  • Epss percentile: 0.18759
  • Assignee: [email protected]
  • Published at: 2026-09-28T21:17:14Z
  • Age in days: 57
  • Modified at: 2026-10-07T20:25:03Z
  • Patch available: yes
  • Public exploits total: 3
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-102268
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-347Improper Verification of Cryptographic Signature

Public exploits

UrlSourceAdded date
https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffc3-869f-jxw9nvd2026-09-28
https://github.com/federiconbaez/cortex9-pyjwt-pem-detection-alg-confusion-modelpoc-in-github2026-11-09
https://github.com/covepseng/cve-2026-102268-pocpoc-in-github2026-10-02

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07Patch
https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffc3-869f-jxw9Exploit, Vendor Advisory
https://github.com/jpadilla/pyjwt/releases/tag/2.14.0Product, Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
pyjwt_project:pyjwt< 2.14.0nonvd/v1/products/pyjwt_project/pyjwt

Projects

RepositoryLink kindsIndexedUrl
jpadilla/pyjwtcommit, package, releases, security_advisoryyes/v1/repositories/jpadilla/pyjwt

Index

  • Repositories: 1603
  • Repositories high signal: 1015
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2026-09-28
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts