Exploit database

Vulnerability

CVE-2026-48710

Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks

Vulnerability details

Score
6.5
Severity
medium

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Description

Starlette is a lightweight ASGI framework/toolkit. Prior to version 1.0.1, the HTTP `Host` request header was not validated before being used to reconstruct `request.url`. Because the routing algorithm relies on the raw HTTP path while `request.url` is rebuilt from the `Host` header, a malformed header could make `request.url.path` differ from the path that was actually requested. Middleware and endpoints that apply security restrictions based on `request.url` (rather than the raw `scope` path) could therefore be bypassed. Users should upgrade to a version greater than or equal to version 1.0.1, which validates the `Host` header against the grammar of RFC 9112 §3.2 / RFC 3986 §3.2.2 when constructing `request.url` and falls back to `scope["server"]` for malformed values.

CVE Program

Exploit source choices

4 sources
eris-ths/supply-chain-guard
GH-bbc4a38566cfc6e1d0aec2f0f78d8dceGitHubUnofficial GitHub sourcePreferred

Detect, assess, and respond to supply chain attacks across npm/yarn and Python (pip/poetry/uv). Claude Code skill + standalone scripts. Built during axios RAT (2026-03-31) and Starlette BadHost CVE-2026-48710 (2026-05-22).

2026-04-0131 files · 3 stars
bhanunamikaze/badhost-cve-2026-48710-exploit
GH-1d259c534d58554626862e1f9e4ef85cGitHubUnofficial GitHub source

Detection scanner for CVE-2026-48710 - Host-header auth bypass in Starlette/FastAPI

2026-05-2812 files · 1 stars
xtremebeing/starlette-host-header-lab
GH-061d20b6799102fd6219d23543e94b21GitHubUnofficial GitHub source

Starlette Host-Header URL Confusion Lab (X41-2026-002) - CVE-2026-48710

2026-05-277 files · 1 stars
cuteecat/cve-2026-48710
GH-3f662303e67bf1801702abcdfd6283fdGitHubUnofficial GitHub source

CVE-2026-48710漏洞验证代码

2026-08-113 files · 0 stars