H3-2026-0087¶
JWT Authentication Bypass via Weak Signing Secret
| Category | VULNERABILITY |
| Base Score | 9.1 |
Description¶
The web application signs its session JSON Web Tokens with a weak or default HMAC secret that was recovered from a wordlist. A token re-signed with the recovered secret, carrying claims the attacker chose, was accepted as a valid authenticated session, while the same request without it was denied. One weak key compromises every route the application protects with that token.
Impact¶
An attacker who recovers the signing secret can mint a valid token for any identity, including an administrator, without knowing any credentials, and reach every resource the token is trusted for.