{"id":"CVE-2026-102266","published":"2026-09-28T20:21:26Z","modified":"2026-09-29T19:35:42Z","title":"PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation","vendor":"jpadilla","product":"pyjwt","tier":"tail","description":{"text":"PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, HMACAlgorithm.from_jwk is affected because PyJWK verification path used the decoded key without applying prepare_key validation. This occurs when a trusted JWK Set contains an oct entry with an empty k value. As a result, an attacker signs an HMAC token with the same zero-length key accepted by PyJWT. Consequently, forged token can carry arbitrary authenticated claims. This issue is fixed in version 2.14.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00309,"percentile":0.16257,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-9j54-fg26-wv3r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jpadilla/pyjwt/commit/f91ed44dd65baaf457f4b3353ed35e98a753934c","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpadilla/pyjwt/releases/tag/2.14.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":3.25},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"jpadilla","affectedVersions":[{"vendor":"jpadilla","product":"pyjwt","versions":[">= 2.13.0, < 2.14.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-29T19:28:36.086597Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PyJWT","vulnerableRanges":[">=2.13.0, <2.14.0"],"patched":["2.14.0"],"from":["GHSA-9j54-fg26-wv3r","PYSEC-2026-4143"],"provenance":"source"}],"summary":{"text":"A flaw in the PyJWT Python library's JSON Web Token handling, specifically in HMACAlgorithm.from_jwk on the PyJWK verification path, skips prepare_key validation of the decoded key and so fails to verify signatures properly. An unauthenticated remote attacker over the network, with no user interaction and no special configuration beyond a trusted JWK Set containing an oct entry with an empty k value, can sign an HMAC token with the same zero-length key and have the forged token carry arbitrary authenticated claims.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:20:30Z"},"euvd":{"id":"EUVD-2026-88484","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jpadilla-pyjwt-cve-2024-53861","parents":[{"from":"CVE-2024-53861","to":"CVE-2026-102266","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jwt/api_jws.py"],"commits":["https://github.com/jpadilla/pyjwt/commit/1570e708672aa9036bc772476beae8bfa48f4131","https://github.com/jpadilla/pyjwt/commit/33022c25525c1020869c71ce2a4109e44ae4ced1","https://github.com/jpadilla/pyjwt/commit/f91ed44dd65baaf457f4b3353ed35e98a753934c"],"basis":"shared function","functions":["_verify_signature"]}]}]}}