Type Confusion in JWT lib in rust - #VU166264
Published: November 16, 2026
Vulnerability details
The vulnerability allows a remote attacker to bypass configured audience, issuer, or subject restrictions on signed tokens.
The vulnerability exists due to type confusion in jsonwebtoken claim validation when wrong-typed aud, iss, or sub claims enter the FailedToParse state and their configured checks are skipped. A remote attacker can submit a validly signed token containing a numeric aud, iss, or sub claim not listed in required_spec_claims to bypass the corresponding restriction, potentially accessing another service that trusts the same signing key.