CVEfocus › CVE database › CVE-2026-48817

CVE-2026-48817Starlette: Arbitrary HTTP method dispatched to `HTTPEndpoint` attributes via `getattr`

CVSS 5.3 MediumEPSS 0.3% (higher than 21% of CVEs)Published 2026-06-17Updated 2026-06-18Assigner: GitHub_M

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.

CWE-470

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10starletteFix pendingUBUNTU-CVE-2026-48817
Ubuntu 26.04starletteUnder investigationUBUNTU-CVE-2026-48817
Ubuntu 25.10starletteWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-48817
Ubuntu 24.04starletteUnder investigationUBUNTU-CVE-2026-48817
Ubuntu 22.04starletteFix pendingUBUNTU-CVE-2026-48817
Debian 14starletteFixed1.1.0-1DEBIAN-CVE-2026-48817
Debian 13starletteFixed0.46.1-3+deb13u3DEBIAN-CVE-2026-48817
Debian 12starletteFixed0.26.1-1+deb12u2DEBIAN-CVE-2026-48817
PyPI librarystarletteFixed1.1.0PYSEC-2026-2280

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.