Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

PyJWT is a Python implementation of JSON Web Token standards. From 2.9.0 until 2.14.0, PyJWKSet does not catch the plain ValueError raised for malformed RSA JWK components by RSAAlgorithm.from_jwk in jwt/api_jwk.py. This occurs when a JWK Set contains a malformed RSA key alongside otherwise usable keys. As a result, one malformed member aborts construction of the entire PyJWKSet. Consequently, applications can experience authentication failures or request-level denial of service. This issue is fixed in version 2.14.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-102274
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:23 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Sept 2026, 20:42 UTC

PyJWT is a Python implementation of JSON Web Token standards. From 2.9.0 until 2.14.0, PyJWKSet does not catch the plain ValueError raised for malformed RSA JWK components by RSAAlgorithm.from_jwk in jwt/api_jwk.py. This occurs when a JWK Set contains a malformed RSA key alongside otherwise usable keys. As a result, one malformed member aborts construction of the entire PyJWKSet. Consequently, applications can experience authentication failures or request-level denial of service. This issue is fixed in version 2.14.0.

osv:CVE-2026-102274
Complete source record
{
  "id": "9851a4accc15b884521a74739fc14ac4e52fa3bfe1f6c9ebabdd560aa3d24256",
  "url": "https://osv.dev/vulnerability/CVE-2026-102274",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set",
    "summary": "PyJWT is a Python implementation of JSON Web Token standards. From 2.9.0 until 2.14.0, PyJWKSet does not catch the plain ValueError raised for malformed RSA JWK components by RSAAlgorithm.from_jwk in jwt/api_jwk.py. This occurs when a JWK Set contains a malformed RSA key alongside otherwise usable keys. As a result, one malformed member aborts construction of the entire PyJWKSet. Consequently, applications can experience authentication failures or request-level denial of service. This issue is fixed in version 2.14.0.",
    "evidence": "osv:CVE-2026-102274",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-102274",
      "aliases": [
        "CVE-2026-102274",
        "GHSA-w6j9-cwv2-h6wq",
        "PYSEC-2026-4152"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jpadilla/pyjwt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "868cf4ab2ca5a0a39da40e5a14dd740b203662b2"
                },
                {
                  "fixed": "c6fe464b356ff4b1ebc9ba62172d331a40aa27df"
                },
                {
                  "fixed": "8915570a0bfda9f0ff0e34e7fb09bdb9d71580cf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.9.0"
                      },
                      {
                        "fixed": "2.14.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8915570a0bfda9f0ff0e34e7fb09bdb9d71580cf"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c6fe464b356ff4b1ebc9ba62172d331a40aa27df"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "2.14.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.13.0",
            "2.12.1",
            "2.12.0",
            "2.11.0",
            "2.10.1",
            "2.10.0",
            "2.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102274.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.809612042Z",
      "provider": "osv",
      "references": [
        "https://github.com/jpadilla/pyjwt/releases/tag/2.14.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102274.json",
        "https://github.com/jpadilla/pyjwt/security/advisories/GHSA-w6j9-cwv2-h6wq",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-102274",
        "https://github.com/jpadilla/pyjwt/commit/8915570a0bfda9f0ff0e34e7fb09bdb9d71580cf"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-755"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102274.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-102274",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491581,
  "published_at": "2026-09-28T20:42:28.355+00:00"
}