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

> Attackers can bypass token validation by exploiting inconsistent OKP JWK components, allowing use of stolen tokens without the legitimate private key.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 28 Sep 2026
- **Updated:** 29 Sep 2026
- **Also known as:** AZL-105233, CLEANSTART-2026-QX32909, CLEANSTART-2026-WH43251, DEBIAN-CVE-2026-102275, ECHO-5c06-a158-9d54, GHSA-x33g-cr3x-6449, MINI-24qq-9pcw-w9gg, MINI-2gc5-5jpj-hvpv, MINI-2m3c-fp28-4649, MINI-57jj-59jg-p7rc, MINI-5j2x-jprm-754c, MINI-68jm-wjv2-7rcx, MINI-74f6-wxpx-2p4m, MINI-7grc-fgv7-w8px, MINI-7pg7-hxw5-xvh7, MINI-8f4v-p4cf-5m6h, MINI-c3f3-g2g5-m625, MINI-cp2h-94w5-4p43, MINI-h2w6-f6q2-358q, MINI-h3w9-hvhc-jxrh, MINI-j8mc-6f56-rqc2, MINI-jj8j-jx9r-9pq4, MINI-p3jh-xx5x-fqmx, MINI-r2r5-pffr-3jvx, MINI-r8w5-gh4r-64h3, MINI-vfwm-6pv7-p36r, MINI-vmjx-jxxc-88mp, MINI-w968-4fvh-6f78, MINI-wc66-wrg9-vpm9, MINI-wc95-x2h8-v5rx, PYSEC-2026-4183, UBUNTU-CVE-2026-102275

## What is CVE-2026-102275?

CVE-2026-102275 is a medium-severity vulnerability in jpadilla pyjwt, published on 28 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-348 (Use of Less Trusted Source), CWE-345 (Insufficient Verification of Data Authenticity)

## Which versions are affected by CVE-2026-102275?

3 open source packages ship an affected version, including pyjwt and PyJWT. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `pyjwt` | PyPI | From 2.1.0 | 2.15.0 |
| `pyjwt` | PyPI | From 2.1.0 | 2.15.0 |
| `PyJWT` | PyPI | From 2.1.0 | 2.15.0 |

Products: Pyjwt Project Pyjwt.

## How do I fix CVE-2026-102275?

Upgrade pyjwt to 2.15.0 or later.

## Is CVE-2026-102275 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-102275 exists.

## Other vulnerabilities in jpadilla pyjwt

- [CVE-2026-102268](https://insights.sbomify.com/CVE-2026-102268/): PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard (critical 9.1)
- [CVE-2026-32597](https://insights.sbomify.com/CVE-2026-32597/): PyJWT accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation) (high 7.5)
- [CVE-2026-102266](https://insights.sbomify.com/CVE-2026-102266/): PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation (high 7.4)
- [CVE-2026-102267](https://insights.sbomify.com/CVE-2026-102267/): PyJWT: PyJWKClient follows redirects when fetching JWKS (high 7.4)
- [CVE-2026-102271](https://insights.sbomify.com/CVE-2026-102271/): PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard (high 7.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-102275 and fix it if it is affected.

What it is: CVE-2026-102275 is a medium-severity vulnerability in jpadilla pyjwt, published on 28 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-102275 exists.

Affected packages and fixed versions:
- pyjwt (PyPI): affected from 2.1.0; fixed in 2.15.0
- pyjwt (PyPI): affected from 2.1.0; fixed in 2.15.0
- PyJWT (PyPI): affected from 2.1.0; fixed in 2.15.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-102275/ (Markdown: https://insights.sbomify.com/CVE-2026-102275/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-102275
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-102275
- OSV: https://osv.dev/vulnerability/CVE-2026-102275

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-102275/
Summaries are generated and may contain mistakes; the official description above is the record.
