# CVE-2026-102272: PyJWT BOM Bypass

- 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.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T20:36:31.530Z
- Modified: 2026-10-06T18:34:24.710Z
- Also known as: GHSA-r6x4-923q-g947, PYSEC-2026-4150
- 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.prepare_key in jwt/algorithms.py is affected because raw-JWK detector does not normalize accepted Unicode byte-order marks before checking for JSON. This occurs when a public JWK is prefixed with a UTF-8 BOM and used in a mixed-algorithm verification path. As a result, public JWK bypasses asymmetric-key detection and becomes the HMAC secret. Consequently, an attacker who knows the public key can forge authenticated tokens. 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`
- 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-r6x4-923q-g947> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/jpadilla/pyjwt/commit/180783930de91876bc0d601f826a1f2956057291> (patch, web)
- <https://github.com/jpadilla/pyjwt/releases/tag/2.14.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102272> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://pypi.org/project/pyjwt> (package)
- <https://github.com/advisories/GHSA-r6x4-923q-g947> (advisory)

## Sources

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

---

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