fastapi-code-generator: Call-time RCE via operation summary -> unescaped route-handler docstring
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| pip:fastapi-code-generator | < 0.8.1 | 0.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…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/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。