← 脆弱性・アップデート

緊急脆弱性アドバイザリPythonFastAPI

fastapi-code-generator: Call-time RCE via operation summary -> unescaped route-handler docstring

影響

パッケージ影響する版修正版
pip:fastapi-code-generator< 0.8.10.8.1

fastapi-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…

GitHub Advisory Databaseで読む

2026/11/10 03:50、GitHub Advisory Databaseが「fastapi-code-generator: Call-time RCE via operation summary -> unescaped route-handler docstring」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「緊急」(critical) です。関連する技術: Python、FastAPI。CVE: CVE-2026-63470。