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
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
- 2798504fa2663364573cf2d1043d8d7fef389499sha1
- CVE-2022-29217cve
- CVE-2026-102271cve
Original source: https://github.com/advisories/GHSA-p4g4-x82p-q773