{"id":"CVE-2026-102273","published":"2026-09-28T20:38:28Z","modified":"2026-09-29T13:44:49Z","title":"PyJWT accepts public JWK containers as HMAC secrets","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, PyJWT HMACAlgorithm.prepare_key is affected because HMAC key guard only recognizes top-level public JWK forms and misses container representations. This occurs when an application allows HMAC and asymmetric algorithms and passes a public JWK container as the raw key. As a result, public asymmetric key material is accepted as the HMAC secret. Consequently, an attacker who knows the public key can forge a token with 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.00278,"percentile":0.12882,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-w2cx-738m-mc7w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jpadilla/pyjwt/commit/801cd128528c62d9b23fcd161d1a2e1c17982f95","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpadilla/pyjwt/releases/tag/2.14.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":2.58},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"jpadilla","affectedVersions":[{"vendor":"jpadilla","product":"pyjwt","versions":[">= 2.13.0, < 2.14.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-29T13:39:56.542639Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PyJWT","vulnerableRanges":[">=2.13.0, <2.14.0"],"patched":["2.14.0"],"from":["GHSA-w2cx-738m-mc7w","PYSEC-2026-4151"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-88541","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jpadilla-pyjwt-cve-2026-102272","parents":[{"from":"CVE-2026-102272","to":"CVE-2026-102273","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jwt/algorithms.py"],"commits":["https://github.com/jpadilla/pyjwt/commit/180783930de91876bc0d601f826a1f2956057291","https://github.com/jpadilla/pyjwt/commit/801cd128528c62d9b23fcd161d1a2e1c17982f95"],"basis":"shared function","functions":["prepare_key"]},{"kind":"similar","provenance":"machine","score":0.6,"basis":"same product + CWE + description similarity"}]}]}}