Unsafe reflection in starlette - #VU132266
Published: May 25, 2026
starlette
Detailed vulnerability description
The vulnerability allows a remote attacker to invoke unintended endpoint methods.
The vulnerability exists due to use of externally-controlled input to select code in HTTPEndpoint request dispatch when processing a request with a non-standard HTTP method. A remote attacker can send a specially crafted request to invoke unintended endpoint methods.
Exploitation requires an HTTPEndpoint subclass to be registered through Route(...) without an explicit methods= argument, and the subclass must expose additional methods whose names match a non-standard HTTP method token shape, accept a single request argument, and return a response.