THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-p4g4-x82p-q773 (high) — PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard

[GHSA] GHSA-p4g4-x82p-q773 (high) — PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard

highgithub_advisoriesPublished 2026-09-29

GHSA-p4g4-x82p-q773 Severity: high CVE: CVE-2026-102271

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

### Summary

`HMACAlgorithm.prepare_key` blocks asymmetric keys from being used as HMAC secrets by searching for text markers only. It looks for `-----BEGIN` and for an `ssh-` prefix. The same key in DER form is binary ASN.1 and has neither marke

Indicators of compromise

Original source: https://github.com/advisories/GHSA-p4g4-x82p-q773