// Security Advisory Triage

PyJWT accepts DER public keys as HMAC secrets, bypassing CVE-2022-29217 fix

GitHub advisories — pip · published 2026-09-30 21:59 UTC
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDPyJWT versions before 2.14.0 contain CVE-2026-102271, published 29 September 2026, rated high severity. The library accepts public keys in DER format as HMAC secrets, circumventing the protection added for CVE-2022-29217. Version 2.14.0 patches this vulnerability.
WHY IT MATTERSAn attacker with access to a public key can forge valid JWT tokens by exploiting the HMAC secret validation bypass. This breaks authentication in any service using PyJWT to verify tokens, allowing unauthorized access to protected resources.
WHAT TO DOAudit your dependency trees for PyJWT < 2.14.0 using `pip list | grep PyJWT` or `pip freeze | grep PyJWT`. If found, update to 2.14.0 or later in this patch cycle. Test token validation in staging before deploying.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-p4g4-x82p-q773
+summary: PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
+severity: high
+published_at: 2026-09-29T23:14:33Z
+cve_id: CVE-2026-102271
+vulnerabilities[].package.name: pyjwt
+vulnerabilities[].first_patched_version: 2.14.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningHigh-severity cryptographic bypass in widely-used JWT library affecting authentication. Patched version available.
signalsknown CVE with assigned ID · high severity rating · authentication library (JWT handling) · cryptographic bypass (HMAC secret validation) · patched version available · PyJWT is in typical service dependency trees
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)