{"id":"ghsa-ghsa-h667-4jj2-cgv4","seq":5742051,"kind":"advisory","title":"fastapi-code-generator: Call-time RCE via operation summary -> unescaped route-handler docstring","url":"https://github.com/advisories/GHSA-h667-4jj2-cgv4","permalink":"https://vulnpulse.app/items/ghsa-ghsa-h667-4jj2-cgv4","summary":"影響: pip:fastapi-code-generator < 0.8.1 → 0.8.1\nfastapi-code-generator (koxudaxi) emits an operation's summary as the generated route handler's docstring, using a triple-quoted string without escaping \"\"\". A \"\"\" in the summary closes the docstring and, via concatenation, injects a live expression that becomes an expression statement in the handler body -- which runs when the route handler is CALLED (the endpoint is hit). The summary is a pure data field. Verified on fastapi-code-generator 0.8.0 / Python 3 / FastAPI. Details python def get_th…","severity":"critical","cvss":null,"techs":["python","fastapi"],"cves":["CVE-2026-63470"],"tags":["GHSA-h667-4jj2-cgv4","fastapi-code-generator"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-11-09T18:50:00.000Z","fetched_at":"2026-11-10T16:07:52.430Z"}