PT-2026-136357
CVE-2026-63471
·
Published
2026-11-03
·
Updated
2026-11-09
Description by
CVSS 4.0
9.3
CriticalMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
fastapi-code-generator versions prior to 0.8.1
Description
The software generates FastAPI applications from OpenAPI files. A flaw exists where an OpenAPI path is inserted into a generated
@app.get(...) route decorator as a single-quoted string without escaping embedded quotes. An attacker-controlled OpenAPI path can close this string and inject a valid Python expression into the decorator argument. While syntax-breaking input causes generation to fail, syntactically valid injected code executes with the privileges of the application or CI process when the generated module is imported and the decorator is evaluated.Recommendations
Update to version 0.8.1.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾