{"id":"CVE-2026-102270","published":"2026-09-28T20:29:24Z","modified":"2026-09-29T19:36:54Z","title":"PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.","vendor":"jpadilla","product":"pyjwt","tier":"tail","description":{"text":"PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, PyJWT is_pem_format is affected because lazy PEM regular expression backtracks extensively. This occurs when a certificate-like input contains repeated BEGIN markers without a matching END marker. As a result, is_pem_format performs unbounded backtracking while searching for a PEM end marker. Consequently, an attacker can cause intensive CPU consumption. This issue is fixed in version 2.14.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.22633,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jwrc-g2q2-pq5p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07","tags":["x_refsource_MISC"]},{"url":"https://github.com/jpadilla/pyjwt/releases/tag/2.14.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"jpadilla","affectedVersions":[{"vendor":"jpadilla","product":"pyjwt","versions":["< 2.14.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-29T19:36:18.803784Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyjwt","vulnerableRanges":["<2.14.0"],"patched":["2.14.0"],"from":["GHSA-jwrc-g2q2-pq5p","PYSEC-2026-4148"],"provenance":"source"}],"summary":{"text":"The flaw is in the is_pem_format function of PyJWT, a Python implementation of JSON Web Token standards, where a lazy PEM regular expression backtracks excessively on certificate-like input containing repeated BEGIN markers without a matching END marker. An attacker able to supply such input can cause unbounded backtracking during the search for a PEM end marker, consuming intensive CPU, and the attack requires high attack complexity and high privileges with no user interaction, reachable over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:29Z"},"euvd":{"id":"EUVD-2026-88537","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jpadilla-pyjwt-cve-2022-29217","parents":[{"from":"CVE-2022-29217","to":"CVE-2026-102270","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jwt/utils.py"],"commits":["https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc","https://github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07"],"basis":"shared function","functions":["raw_to_der_signature"]}]}]}}