GitHub advisory · Go
Istio: AuthorizationPolicy method rules are bypassed over HTTP/2 by changing the method case
Description
An AuthorizationPolicy DENY rule with methods (or an ALLOW rule with notMethods) is compiled to a case-sensitive :method matcher. Over HTTP/2 a request whose method differs only in case (e.g. post instead of POST) does not match the rule and is forwarded to the workload, bypassing the authorization policy. HTTP/1.1 is not affected because the codec rejects non-uppercase methods before authorization.
Fixes are available in 1.29.9, 1.30.6 and 1.31.2.
Use ALLOW policies with an explicit methods allow-list instead of DENY / notMethods rules; a case-mismatched method does not match the allow-list and is denied.
Manual fix · Go
go get istio.io/istio@v0.0.0-20261020195841-fd5cd63c869dSources