CVE DatabaseCVE-2026-48710
한국어 권고문 →
CVE-2026-487106.5/MEDIUMCISA KEVCWE-444CWE-1289

Starlette Security Middleware Bypass via Insufficient HTTP Host Header Validation (CVE-2026-48710)

Affected Vendors
starlette
Affected Components
starlette
Published Date
2026-05-26

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All web applications utilizing Starlette ASGI framework prior to version 1.0.1

Impact

Malformed Host headers can cause a discrepancy between the actual routed path and request.url.path, allowing attackers to bypass URL-based security middleware and access controls

Mitigation

Immediately upgrade the Starlette package to version 1.0.1 or higher

Affected Products & Version Scope

All Starlette versions prior to 1.0.1

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch (Recommended)

Upgrade your Starlette dependency to version 1.0.1 or higher. This version validates the Host header against RFC 9112 §3.2 / RFC 3986 §3.2.2 grammar and falls back to scope["server"] for malformed values.

bash
# Using pip
pip install --upgrade "starlette>=1.0.1"

# Using Poetry
poetry add starlette@latest

2. Temporary Mitigation

If an immediate upgrade is not feasible, configure your reverse proxy (e.g., Nginx, AWS ALB) or WAF to validate and drop requests with malformed Host headers.

Nginx Configuration Example:

nginx
# Block requests with invalid Host headers
if ($http_host !~* ^[a-z0-9.-]+(:[0-9]+)?$) {
    return 400;
}
Recommended Security Control & Mitigation Partner
Snyk Open Source & Container Security
Upgrade Starlette to version 1.0.1 or higher immediately to prevent unauthorized access via Host header manipulation.

Scan Your Repositories for Transitive Vulnerable Dependencies in 30 Seconds

Automatically detect vulnerable packages across npm, PyPI, Maven, and Go, and open automated fix Pull Requests without breaking your build.

Free Forever Tier · 1-Click GitHub/GitLab Auto-PR
Master DevSecOps: Automated SAST/SCA in GitHub Actions & Kubernetes
View Course Curriculum

Technical Root Cause & Exploitation Mechanics

This vulnerability (CVE-2026-48710) exists in Starlette, a lightweight ASGI framework, due to the lack of validation on the HTTP Host request header before using it to reconstruct the request.url object.

While Starlette's routing algorithm relies on the raw HTTP path from the ASGI scope, many security middlewares and endpoints perform access control checks based on request.url. By sending a malformed Host header that violates RFC specifications, an attacker can manipulate the reconstruction of request.url, making request.url.path differ from the path that was actually requested and routed.

Consequently, security restrictions applied by middleware (such as IP/path-based access controls) can be completely bypassed. This vulnerability has been actively exploited in the wild (CISA KEV listed) with an EPSS score of 0.94, requiring immediate remediation.

Official Vendor Advisories & References

NVD Original English 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.

SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed: