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_app 팔로우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.