# CVE-2026-102270: PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T20:29:24.479Z
- Modified: 2026-10-06T18:46:19.343Z
- Also known as: GHSA-jwrc-g2q2-pq5p, PYSEC-2026-4148
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jpadilla pyjwt: < 2.14.0
- pyjwt (PyPI): before 2.14.0
- pyjwt_project pyjwt: before 2.14.0

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jwrc-g2q2-pq5p> (exploit, patch, vendor-advisory, web)
- <https://github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07> (patch, web)
- <https://github.com/jpadilla/pyjwt/releases/tag/2.14.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102270> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://pypi.org/project/pyjwt> (package)
- <https://github.com/advisories/GHSA-jwrc-g2q2-pq5p> (advisory)

## Sources

- CVE List: [CVE-2026-102270](https://www.cve.org/CVERecord?id=CVE-2026-102270), CVE Terms of Use, modified 2026-09-29
- GitHub Advisory Database: [GHSA-jwrc-g2q2-pq5p](https://github.com/advisories/GHSA-jwrc-g2q2-pq5p), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-102270](https://nvd.nist.gov/vuln/detail/CVE-2026-102270), Public domain, modified 2026-10-06
- PyPA Advisory Database: [PYSEC-2026-4148](https://osv.dev/vulnerability/PYSEC-2026-4148), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-102270 · Whole record: https://cve.day/CVE-2026-102270.json · Rebuilt by cve.day 2026-11-25T22:59:41.388Z
