Improper Verification of Cryptographic Signature in lua-resty-jwt - #VU163201
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to forge arbitrary JSON Web Tokens that affected applications accept as valid.
The vulnerability exists due to algorithm confusion in lua-resty-jwt when applications verify tokens using an RSA or EC public key without configuring an algorithm whitelist. An unauthenticated remote attacker can select an HMAC algorithm in the token header and sign forged tokens using the public key's PEM text as the secret.