# CVE-2026-102271: PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.14.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-28 · Modified: 2026-10-01
- Aliases: GHSA-p4g4-x82p-q773, PYSEC-2026-4149, UBUNTU-CVE-2026-102271, DEBIAN-CVE-2026-102271, CGA-28pc-6c8f-qfj2, CGA-2p22-v7cv-3gmr, CGA-2p4q-fjc2-c3c7, CGA-335q-3jfj-jxw9, CGA-595g-h8hr-vc43, CGA-769w-47w8-rgh6, CGA-8mh9-2q6j-fm9m, CGA-8mpc-38cj-j3pm, CGA-c8f2-cg75-w5ww, CGA-chfj-25wf-h3mh, CGA-h325-cp3g-27h3, CGA-hq36-hgp9-4qfp, CGA-m42r-gh5j-m624, CGA-m6xv-83m8-xjw4, CGA-mp5v-h773-5596, CGA-mqrp-vgrh-mcrv, CGA-phr9-6f8w-cj8c, CGA-qx88-ggcv-cpmq, CGA-r5qg-cvqg-ch34, CGA-rh77-7px3-h8x7, CGA-w84p-2php-q2cx, CGA-xw82-84hq-fjpv, CGA-26r6-j396-62c4, CGA-27fr-jwf4-5jc6, CGA-2chv-45mg-3jxr, CGA-2gwj-3ghj-8jr4, CGA-2h44-23f6-vw79, CGA-2pr6-565j-9243, CGA-2vc8-qfgc-84c3, CGA-2vmw-gpvj-9jhx, CGA-2wxf-vh24-f7ww, CGA-34j7-9xjr-62c8, CGA-3mhj-frrf-rc42, CGA-3p5v-2xvg-g74r, CGA-3r25-8rch-p4j7, CGA-46j8-vx68-rcgx, CGA-474c-hpgf-cqv5, CGA-486c-rq96-5qpg, CGA-4h38-2cpm-m3wq, CGA-4jj6-6vp8-f4f6, CGA-4qww-67x3-8mx5, CGA-4v4r-255r-wjm4, CGA-52ch-xmp4-j6hh, CGA-53mx-qg64-87pq, CGA-556h-9mp9-x2pp, CGA-558g-m358-2v4v, CGA-55wf-2jvg-4r4x, CGA-55xf-crwp-9f55, CGA-58cj-6x8m-rfh3, CGA-5gw7-87px-43mf, CGA-5jjq-wvfr-5fc8, CGA-5w67-x8qj-jq8r, CGA-63h6-h87j-6frq, CGA-6gw2-gxqh-pfh3, CGA-6h33-8g8w-r383, CGA-6rrp-xrgx-9h96, CGA-73hg-2r4v-9vg4, CGA-778m-vppm-x5hv, CGA-78fj-72gv-8rwg, CGA-7r49-j3fv-qhwj, CGA-7wcg-m3g7-9g44, CGA-88xh-6cf7-chc4, CGA-8g4v-79wr-4c4h, CGA-8mp8-m7p4-78f4, CGA-8qrx-cpcp-r5cj, CGA-9fx7-4pvw-q4v2, CGA-9pwc-fc4x-5c9v, CGA-9w84-9qx8-469f, CGA-c29m-f56f-qpwr, CGA-c66p-6fwm-gjm2, CGA-c7p4-5ppj-vjpp, CGA-c7xc-7fjv-34p4, CGA-cw56-vxwr-pvv6, CGA-cwwj-25j8-g85j, CGA-f28m-27xg-5f8g, CGA-f5w5-2fv6-jj6v, CGA-g23f-76rc-4rqf, CGA-g37j-q7gj-vrcx, CGA-g5vh-58cj-w737, CGA-g626-qxj2-7c54, CGA-ggv5-2r4h-6f3j, CGA-hff3-8cvr-j3mx, CGA-hhj8-c972-hjx6, CGA-hp9m-m5m7-3349, CGA-hvhx-9fqg-wwcv, CGA-hx25-qrqp-q6gw, CGA-hxqg-7phh-8mp9, CGA-j28c-392g-94mr, CGA-j9cx-fvq4-4f2p, CGA-jcfr-hf34-4qfc, CGA-jfhg-p4mf-pmxq, CGA-jgmg-qwgc-cqpg, CGA-jpv5-j587-66mq, CGA-jwhh-pgq7-4xx7, CGA-m5h6-v522-xfm5, CGA-m93q-8gfc-jq77, CGA-m963-v7xc-hv49, CGA-mc3r-xrwg-vgr9, CGA-mc5m-r4jr-p6c8, CGA-mcgq-r5wx-8qqq, CGA-mggw-ww5p-cxgr, CGA-mq67-g9jv-2mxg, CGA-p68q-wpgm-g658, CGA-p7jx-gj2x-2h72, CGA-p87j-wjmp-rvrj, CGA-p8r3-7xm3-m7f4, CGA-p947-jqfg-xmmj, CGA-p99j-7236-x2gr, CGA-pjw8-2cq9-2g5m, CGA-pmgg-qwc9-h65q, CGA-pv2r-2rjw-52xc, CGA-pv4r-585c-mjqm, CGA-pw6p-3rqp-m892, CGA-v849-97ww-3c5r, CGA-q4hc-fh7f-9v99, CGA-q7mp-38qh-87q5, CGA-q87q-5mh7-55cj, CGA-q8jp-qqf2-544c, CGA-qgxp-q7r8-r3gm, CGA-r4cm-wjqp-ffh4, CGA-rfph-h66h-m6h3, CGA-rh9v-hhq7-99qw, CGA-rvhm-6rcv-f5xw, CGA-v49x-w5rx-p34j, CGA-v5ww-fxc4-q63j, CGA-v9rj-cg4f-2grh, CGA-vhg8-xcxc-xgfw, CGA-vrmf-wv9q-p748, CGA-w2f4-4c6m-c2gp, CGA-w62x-5m2c-cc56, CGA-wc9r-c2jm-c5p5, CGA-wchc-c923-8wwm, CGA-wm62-jfmr-j2hr, CGA-ww96-qw8f-64cp, CGA-ww9q-7rjc-xxfj, CGA-wx6g-8qjg-vwm8, CGA-wxvc-mx55-qwwg, CGA-x98m-jmhx-fhhc, CGA-xmrx-q2cr-grr5, CGA-xp2f-chjj-4x2c, CGA-xqfq-4723-6f6p, CGA-xx2g-vh2v-v3v5
- Record: https://cvemate.com/vulnerability/CVE-2026-102271 · JSON: https://cvemate.com/vulnerability/CVE-2026-102271/json

## Description

```text
PyJWT is a Python implementation of JSON Web Token standards. From 2.4.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because asymmetric-key guard relies on textual markers that are absent from DER encoding. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a DER public key as the shared verification key. As a result, PyJWT uses public DER bytes as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.
```

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.215%, percentile 12.586%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 96)

- chainguard airflow-2 (Chainguard): \< 2.11.2-r25
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded) \| \< 2.11.2-r10
- chainguard authentik-2026.5 (Chainguard): \< 2026.5.7-r4
- chainguard authentik-fips-2026.5 (Chainguard): \< 2026.5.7-r7
- chainguard azureml-inference-server-http (Chainguard): \< 1.5.1-r10
- chainguard azureml-inference-server-http-fips (Chainguard): \< 1.5.1-r9
- chainguard datadog-agent-7.77-core-integrations (Chainguard): \< 7.77.3-r26
- chainguard datadog-agent-7.78-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-7.79-core-integrations (Chainguard): \< 7.79.2-r20
- chainguard datadog-agent-7.80-core-integrations (Chainguard): \< 7.80.4-r19
- chainguard datadog-agent-7.81-core-integrations (Chainguard): \< 7.81.3-r8
- chainguard datadog-agent-7.82-core-integrations (Chainguard): \< 7.82.3-r5
- chainguard datadog-agent-7.83-core-integrations (Chainguard): \< 7.83.3-r2
- chainguard datadog-agent-7.84-core-integrations (Chainguard): \< 7.84.1-r1
- chainguard datadog-agent-fips-7.77-core-integrations (Chainguard): \< 7.77.3-r38
- chainguard datadog-agent-fips-7.78-core-integrations (Chainguard): All versions (No fix recorded)
- chainguard datadog-agent-fips-7.79-core-integrations (Chainguard): \< 7.79.2-r18
- chainguard datadog-agent-fips-7.80-core-integrations (Chainguard): \< 7.80.4-r21
- chainguard datadog-agent-fips-7.81-core-integrations (Chainguard): \< 7.81.3-r12
- chainguard datadog-agent-fips-7.82-core-integrations (Chainguard): \< 7.82.3-r8

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-p4g4-x82p-q773>
- <https://github.com/jpadilla/pyjwt/commit/2798504fa2663364573cf2d1043d8d7fef389499>
- <https://github.com/jpadilla/pyjwt/releases/tag/2.14.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102271>
- <https://github.com/jpadilla/pyjwt>
- <https://pypi.org/project/pyjwt>
- <https://github.com/advisories/GHSA-p4g4-x82p-q773>
- <https://ubuntu.com/security/CVE-2026-102271>
- <https://www.cve.org/CVERecord?id=CVE-2026-102271>
- <https://security-tracker.debian.org/tracker/CVE-2026-102271>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102271.json>
- <https://ubuntu.com/security/notices/USN-8916-2>
- <https://ubuntu.com/security/notices/USN-8916-1>

---

Data as of 2026-12-05T06:34:45.606Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
