CVE-2026-54282

Starlette is a lightweight ASGI framework/toolkit. Prior to 1.3.0, the HTTP request path is not validated before being used to reconstruct request.url. Because request.url is rebuilt by concatenating {scheme}://{host}{path} and re-parsing the result, a path that does not begin with / (for example @google.com) moves the authority boundary during re-parsing, so request.url.hostname and request.url.netloc become attacker-controlled. Code that reads request.url.hostname (rather than the Host header or scope) can therefore be misled into trusting an attacker-supplied host. This vulnerability is fixed in 1.3.0.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:*

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) Starlette es un framework/conjunto de herramientas ASGI ligero. Antes de la versión 1.3.0, la ruta de solicitud HTTP no se valida antes de ser utilizada para reconstruir request.url. Debido a que request.url se reconstruye concatenando {scheme}://{host}{path} y volviendo a analizar el resultado, una ruta que no comienza con / (por ejemplo, @google.com) mueve el límite de autoridad durante el reanálisis, por lo que request.url.hostname y request.url.netloc pasan a estar controlados por el atacante. El código que lee request.url.hostname (en lugar del encabezado Host o el ámbito) puede, por lo tanto, ser engañado para confiar en un host proporcionado por el atacante. Esta vulnerabilidad se corrige en la versión 1.3.0.

Information

Published : 2026-06-22 18:16

Updated : 2026-10-25 23:10


NVD link : CVE-2026-54282

Mitre link : CVE-2026-54282

CVE.ORG link : CVE-2026-54282


JSON object : View

Products Affected

encode

  • starlette
CWE
CWE-706

Use of Incorrectly-Resolved Name or Reference