Resource exhaustion in lua-resty-jwt - #VU163202
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to exhaust nginx worker CPU resources and deny service to affected applications.
The vulnerability exists due to unbounded PBKDF2 iteration counts during JWE parsing in lua-resty-jwt before authentication, with no algorithm whitelist enforcement for JWE tokens. An unauthenticated remote attacker can submit a JWE using PBES2-HS512+A256KW with an arbitrarily large p2c header to trigger expensive key derivation even when decryption ultimately fails.