# CVE-2026-102275: PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- 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.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T20:46:33.169Z
- Modified: 2026-10-07T10:11:04.862Z
- Also known as: GHSA-x33g-cr3x-6449, PYSEC-2026-4183
- Weaknesses: CWE-345, CWE-348
- 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. From 2.1.0 until 2.15.0, PyJWT OKPAlgorithm.from_jwk in  jwt/algorithms.py is affected because private-JWK import path does not compare the public key derived from d with x. This occurs when an OKP private JWK supplies non-corresponding x and d components. As a result, identity derived from x can differ from operations performed with d. Consequently, if an integration also accepts private key parameters from a proof header without rejecting them, an attacker may use a stolen sender-constrained token without the legitimate private key. This issue is fixed in version 2.15.0.

(As written by CVE List.)

## Affected

- jpadilla pyjwt: >= 2.1.0, < 2.15.0
- pyjwt (PyPI): from 2.1.0 before 2.15.0
- pyjwt_project pyjwt: from 2.1.0 before 2.15.0

## Every score

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

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-x33g-cr3x-6449> (exploit, evidence, vendor-advisory, web)
- <https://github.com/jpadilla/pyjwt/commit/3cd9ceec33ced359decbad75b413ad668ae6332c> (fix, patch, web)
- <https://github.com/jpadilla/pyjwt/releases/tag/2.15.0> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102275> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)

## Sources

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

---

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