# CVE-2026-102266: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/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.22%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T20:21:26.164Z
- Modified: 2026-10-07T20:55:07.653Z
- Also known as: GHSA-9j54-fg26-wv3r, PYSEC-2026-4143
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, HMACAlgorithm.from_jwk is affected because PyJWK verification path used the decoded key without applying prepare_key validation. This occurs when a trusted JWK Set contains an oct entry with an empty k value. As a result, an attacker signs an HMAC token with the same zero-length key accepted by PyJWT. Consequently, forged token can carry arbitrary authenticated claims. This issue is fixed in version 2.14.0.

(As written by CVE List.)

## Affected

- jpadilla pyjwt: >= 2.13.0, < 2.14.0
- pyjwt (PyPI): from 2.13.0 before 2.14.0
- pyjwt_project pyjwt: 2.13.0

## Every score

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

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-9j54-fg26-wv3r> (exploit, vendor-advisory, web)
- <https://github.com/jpadilla/pyjwt/commit/f91ed44dd65baaf457f4b3353ed35e98a753934c> (patch, web)
- <https://github.com/jpadilla/pyjwt/releases/tag/2.14.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102266> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://pypi.org/project/pyjwt> (package)
- <https://github.com/advisories/GHSA-9j54-fg26-wv3r> (advisory)

## Sources

- CVE List: [CVE-2026-102266](https://www.cve.org/CVERecord?id=CVE-2026-102266), CVE Terms of Use, modified 2026-09-29
- GitHub Advisory Database: [GHSA-9j54-fg26-wv3r](https://github.com/advisories/GHSA-9j54-fg26-wv3r), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-102266](https://nvd.nist.gov/vuln/detail/CVE-2026-102266), Public domain, modified 2026-10-07
- PyPA Advisory Database: [PYSEC-2026-4143](https://osv.dev/vulnerability/PYSEC-2026-4143), CC-BY-4.0, modified 2026-10-01

---

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