// Security Advisory Triage
PyJWT 2.14.0 patches HMAC token forgery via empty key
GitHub advisories — pip · published 2026-10-23 04:57 UTC
WHAT CHANGEDPyJWT published GHSA-pxh4-856f-4h89 on 22 October 2026. HS256/384/512 signature verification accepts an empty HMAC key when passed via oct JWK through PyJWK or PyJWKClient, enabling attackers to forge valid tokens. First patched version is 2.14.0.
WHY IT MATTERSAny service using PyJWT with JWK-based key loading for HMAC algorithms can accept forged tokens, bypassing authentication entirely. An attacker who can control the JWK input or exploit how your service loads keys can authenticate as any user.
WHAT TO DOUpgrade to PyJWT 2.14.0. Check whether your services use PyJWK or PyJWKClient with HS256, HS384, or HS512 algorithms — grep for 'PyJWK' and 'HS256|HS384|HS512' in your JWT verification code.
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-pxh4-856f-4h89 +summary: PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery +severity: high +published_at: 2026-10-22T15:48:04Z +cve_id: +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 verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | JWT authentication bypass via empty HMAC key in widely-deployed library. Security leads patch this week. |
| signals | known vulnerability in widely-used authentication library · token forgery capability — authentication bypass · affects HMAC verification in JWT processing · first_patched_version specified (2.14.0) · high severity rating · PyJWT is in dependency trees of many services |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |