Skip to content
Heist/ feed
Back to feed
Medium

starlette — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-48817

Starlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.

Products
starlette
Affected versions
0.14.1-1, 0.16.0-1, 0.18.0-1, 0.30.0-1, 0.31.1-1, 0.46.1-2, 0.46.1-3, 0.50.0-1, 1.1.0-1, 1.3.1-1, 1.7.0-2
Fixed versions
Not specified
CVEs
CVE-2026-48817
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:07 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-48817

core-osv · Original source

Published 17 Jun 2026, 20:17 UTC

Starlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.

osv:UBUNTU-CVE-2026-48817

starlette

Fixed versions: Not specified

starlette

Fixed versions: Not specified

starlette

Fixed versions: Not specified

starlette

Fixed versions: Not specified

starlette

Fixed versions: Not specified

Complete source record
{
  "id": "bbf316f087f18b8ca1cdbaa58ccc7c056d6dcd6fc88484243d6843d201177ccb",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-48817",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-48817",
    "summary": "Starlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.",
    "evidence": "osv:UBUNTU-CVE-2026-48817",
    "products": [
      {
        "name": {
          "value": "starlette",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.14.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.16.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.18.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "starlette",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.30.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.31.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "starlette",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.46.1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.46.1-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "starlette",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.50.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.1.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.3.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.7.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "starlette",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.46.1-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.50.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-48817",
      "aliases": [
        "UBUNTU-CVE-2026-48817"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "starlette",
            "purl": "pkg:deb/ubuntu/starlette?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.14.1-1",
            "0.16.0-1",
            "0.18.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48817.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-starlette",
                "binary_version": "0.18.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "starlette",
            "purl": "pkg:deb/ubuntu/starlette?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.30.0-1",
            "0.31.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48817.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-starlette",
                "binary_version": "0.31.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "starlette",
            "purl": "pkg:deb/ubuntu/starlette?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.46.1-2",
            "0.46.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48817.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-starlette",
                "binary_version": "0.46.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "starlette",
            "purl": "pkg:deb/ubuntu/starlette?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.50.0-1",
            "1.1.0-1",
            "1.3.1-1",
            "1.7.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48817.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-starlette",
                "binary_version": "1.7.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "starlette",
            "purl": "pkg:deb/ubuntu/starlette?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.46.1-3",
            "0.50.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48817.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-starlette",
                "binary_version": "0.50.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:23.865511053Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-48817"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-48817",
        "https://www.cve.org/CVERecord?id=CVE-2026-48817",
        "https://github.com/Kludex/starlette/security/advisories/GHSA-x746-7m8f-x49c",
        "https://github.com/Kludex/starlette/pull/3286",
        "https://github.com/Kludex/starlette/commit/e3f972225adb1d84b80dba132f520cc24cb84229"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-48817",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360487,
  "published_at": "2026-06-17T20:17:00+00:00"
}