{"id":"CVE-2026-102272","revision":"7bf1124a77bb4e77b6fe269f4d578b07","records":[{"revision":"7bf1124a77bb4e77b6fe269f4d578b07","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-102272","aliases":[],"title":"PyJWT BOM Bypass","description":"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.","state":0,"publishedAt":"2026-09-28T20:36:31.53+00:00","modifiedAt":"2026-09-29T14:45:44.138+00:00","affected":[{"ecosystem":"Vendor product","name":"pyjwt","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"jpadilla\",\n                    \"product\": \"pyjwt\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 2.13.0, < 2.14.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"severity":"HIGH"}],"references":["https://github.com/jpadilla/pyjwt/security/advisories/GHSA-r6x4-923q-g947","https://github.com/jpadilla/pyjwt/commit/180783930de91876bc0d601f826a1f2956057291","https://github.com/jpadilla/pyjwt/releases/tag/2.14.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-102272","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-102272","identifiers":["CVE-2026-102272"]},"retained":false,"historicalAffected":[]}],"coverage":[]}