CVE-2026-48817 Details
Description
Starlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.
A vulnerability exists in Starlette versions prior to 1.1.0, allowing arbitrary HTTP methods to be dispatched to `HTTPEndpoint` attributes via `getattr`. This occurs because `HTTPEndpoint` subclasses registered through `Route(...)` without an explicit `methods=` argument do not constrain the HTTP method, enabling every method to reach the endpoint. If a non-standard HTTP method matches an attribute name on the endpoint subclass, that attribute is invoked as a request handler. This can be exploited to access methods not intended as HTTP handlers, bypassing authorization checks. This issue also affects Starlette-based frameworks like FastAPI.
To address this vulnerability, register `HTTPEndpoint` subclasses with an explicit `methods=` argument on the `Route`, specifying only the supported HTTP verbs. This will prevent non-standard methods from reaching the endpoint.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Kludex/starlette/releases/tag/1.1.0 | [email protected] | Release Notes |
| https://github.com/Kludex/starlette/security/advisories/GHSA-x746-7m8f-x49c | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-470 | Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| encode starlette | < 1.1.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 18, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | New CVE Received | [email protected] |