THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-h667-4jj2-cgv4 (critical) — fastapi-code-generator: Call-time RCE via operation summary -> unescaped route-handler docstring

[GHSA] GHSA-h667-4jj2-cgv4 (critical) — fastapi-code-generator: Call-time RCE via operation summary -> unescaped route-handler docstring

medgithub_advisoriesPublished 2026-11-09

GHSA-h667-4jj2-cgv4 Severity: critical CVE: CVE-2026-63470

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

### Summary

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,

Indicators of compromise

Original source: https://github.com/advisories/GHSA-h667-4jj2-cgv4