python-jose flaw CVE-2026-120459 lets empty HMAC keys validate forged JWTs
Versions of python-jose through 3.5.0 accept zero-length HMAC secrets in their key wrappers, as described in CVE-2026-120459. Because of this, an unauthenticated attacker could forge JWTs that pass verification when the application uses an empty key as its trust anchor. The issue does not involve a new signing algorithm and does not require knowledge of a real secret, but depends on an empty value reaching the HMAC key construction path. Empty values can arise from unset environment variables, secrets loaded before a vault is ready, or test defaults. Teams are advised to identify affected installations, reject empty or weak HMAC secrets at the application level, and rotate signing material if an exposed service may have used an empty key.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in