{"id":"CVE-2026-102272","published":"2026-09-28T20:36:31Z","modified":"2026-09-29T14:45:44Z","title":"PyJWT BOM Bypass","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.prepare_key in jwt/algorithms.py is affected because raw-JWK detector does not normalize accepted Unicode byte-order marks before checking for JSON. This occurs when a public JWK is prefixed with a UTF-8 BOM and used in a mixed-algorithm verification path. As a result, public JWK bypasses asymmetric-key detection and becomes the HMAC secret. Consequently, an attacker who knows the public key can forge authenticated tokens. 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.00289,"percentile":0.14057,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-r6x4-923q-g947","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jpadilla/pyjwt/commit/180783930de91876bc0d601f826a1f2956057291","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpadilla/pyjwt/releases/tag/2.14.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":2.81},{"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-29T14:45:38.333972Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PyJWT","vulnerableRanges":[">=2.13.0, <2.14.0"],"patched":["2.14.0"],"from":["GHSA-r6x4-923q-g947","PYSEC-2026-4150"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-88540","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jpadilla-pyjwt-cve-2026-102272","children":[{"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"}]}]}}