Stop Using JSON Web Tokens (JWTs) for Authorization! by Sohan Maheshwar
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
JWTs are widely misused for authorization, but they have fundamental flaws for this purpose. Being stateless and self-contained, they cannot be meaningfully revoked — a problem known as the 'confused deputy' or 'new enemy problem' described in Google's Zanzibar whitepaper. Scopes don't scale to fine-grained permissions, and tokens flowing through distributed/microservice architectures create unpredictable privilege escalation risks. OWASP consistently ranks broken access control as the top web app risk, with 100% of tested apps failing. Modern alternatives include Zanzibar-based relationship access control systems (SpiceDB, OpenFGA, Permify) and policy decision points/engines (OPA, Cedar). JWTs remain appropriate for one-time, short-lived, non-revocable grants like email verification links, but should not be used for long-lived sessions or fine-grained app authorization.
Sort: