Web Security · Authentication
JWT Algorithm Confusion
Also known as: Algorithm Confusion, Key Confusion
A verifier accepts an unintended algorithm or interprets a key under the wrong algorithm’s rules. For example, public RSA bytes become an HMAC secret. Pin allowed algorithms and enforce key types. The token header must not define the trust policy.