// Security Advisory Triage

PyJWT 2.13.0 accepts JWK public keys as HMAC secrets

GitHub advisories — pip · published 2026-09-30 21:59 UTC
CORRECTED 2026-10-18 15:00 UTC — Correction: The affected range was overstated. GHSA-w2cx-738m-mc7w lists only PyJWT = 2.13.0 as vulnerable, not every version before 2.14.0. Patched in 2.14.0 is correct.
Stood 425h 0m · cause writer overreach · every correction ↗
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDCVE-2026-102273 (GHSA-w2cx-738m-mc7w) published 29 September 2026, rated high severity. PyJWT 2.13.0 accepts public JWK containers as HMAC secrets. Only version 2.13.0 is listed as vulnerable. Patched in 2.14.0.
WHY IT MATTERSAn attacker who knows the public key can forge HS256/HS384/HS512 tokens, but only in applications that allow both HS* and asymmetric algorithms in one verification path and pass raw public JWK or JWKS JSON as the key. Applications that keep symmetric and asymmetric verification separate are not affected.
WHAT TO DOCheck your dependency trees for PyJWT 2.13.0. If found, update to 2.14.0 this cycle. If any verification path accepts both HS* and asymmetric algorithms and passes JWK or JWKS data as the key, review those call sites first.
Original text (as first published, superseded)
HEADLINEPyJWT accepts JWK public keys as HMAC secrets
WHAT CHANGEDCVE-2026-102273 published 29 September 2026. PyJWT before 2.14.0 accepts public JWK containers as HMAC secrets, rated high severity. Patched in 2.14.0.
WHY IT MATTERSAn attacker who controls the JWK input can forge tokens by supplying a public key where the application expects an HMAC secret, bypassing signature verification entirely. Any JWT validation using HMAC with externally-supplied keys is compromised.
WHAT TO DOGrep your dependency trees for PyJWT <2.14.0. If found, update to 2.14.0 this cycle. If you pass JWK data into JWT verification, audit those call sites for untrusted input before deploying the patch.
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-w2cx-738m-mc7w
+summary: PyJWT accepts public JWK containers as HMAC secrets
+severity: high
+published_at: 2026-09-29T23:16:55Z
+cve_id: CVE-2026-102273
+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.95, needed 0.5
triage reasoningPyJWT is a standard authentication library. High-severity JWT validation bypass affects normal service dependencies.
signalsknown package in dependency trees · high severity rating · new CVE and advisory ID · patched version available · cryptographic vulnerability (HMAC/JWT handling)
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)