Inadequate Encryption Strength in authlib - #VU156092
Published: October 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to forge JWS/JWT tokens with arbitrary claims and bypass authentication.
The vulnerability exists due to acceptance of zero-length HMAC keys in Authlib's OctKey and HMACAlgorithm components when verifying JWS/JWT signatures using HS256, HS384, or HS512. A remote attacker can submit tokens signed with an empty key, whose signatures are publicly reproducible, to bypass signature verification in applications whose verification key resolves to an empty value.