CVE-2026-120459
python-jose through 3.5.0 contains an authentication bypass …
python-jose through 3.5.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge JWTs because HMACKey and CryptographyHMACKey accept zero-length HMAC secrets. When an application's HS256/HS384/HS512 verification key resolves to empty, such as an oct JWK with empty k, attackers can forge tokens with arbitrary claims that jwt.decode accepts.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/cryptography_backend.py
- github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/native.py
- github.com/mpdavis/python-jose/issues/398
- www.vulncheck.com/advisories/python-jose-through-3.5.0-authentication-bypass-via-empty-hma
- nvd.nist.gov/vuln/detail/CVE-2026-120459
- cve.org/CVERecord?id=CVE-2026-120459
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.