#5281·postgrest

Document that JWT `alg=none` is not supported

Author: steve-chavezCreated Sep 23, 2026Updated Sep 23, 2026
Labelsdocs

Problem

Is not that clear on this section that we don't:

The critique against the JWT standard is voiced in detail elsewhere on the web. The most relevant part for PostgREST is the so-called alg=none issue. Some servers implementing JWT allow clients to choose the algorithm used to sign the JWT. In this case, an attacker could set the algorithm to none, remove the need for any signature at all and gain unauthorized access. The current implementation of PostgREST, however, does not allow clients to set the signature algorithm in the HTTP request, making this attack irrelevant. The critique against the standard is that it requires the implementation of the alg=none at all. https://docs.postgrest.org/en/v16/references/auth.html#jwt-security

It says "current implementation" and one can infer it could change. We should make it clear we don't support it nor we intend to, since it'd be a security vulnerability.