Skip to content

Bump FastAPI/Starlette for PYSEC-2026-161 #5812

Closed

Description

@mitchedmunds-MadeTech

The web and lsp extras exact-pin fastapi==0.120.1, which transitively pulls in starlette 0.49.3 (via FastAPI 0.120.1's starlette<0.50,>=0.40.0). starlette 0.49.3 is affected by PYSEC-2026-161 / GHSA-86qp-5c8j-p5mr — missing Host header validation poisons request.url.path, bypassing path-based security checks. Fixed in starlette 1.0.1.

Because the FastAPI pin is ==, downstream uv lock --upgrade cannot pull the patched starlette. FastAPI 0.136.3 (latest) only requires starlette>=0.46.0 with no upper cap, so bumping the pin unblocks the fix.

References:

Activity

  1. denisephie commented on Jun 13, 2026

    @denisephie

    I'd like to fix this, planning to bump the fastapi pin from ==0.120.1 to >=0.136.3 in pyproject.toml. Opened a PR for this: #5838

  2. hongha912 commented on Aug 18, 2026

    @hongha912
    Contributor

    Seems like @denisephie is not responding to feedback on #5838 so I'm adding a new fix #5958.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions