Live › vulnerability › CVE-2026-63469
fastapi-code-generator turns OpenAPI files into FastAPI applications and, before 0.8.1, wrote a non-primary response status-code key into generated Python without escaping quotes. An attacker who controls that OpenAPI input can make the generated code run arbitrary Python with the privileges of the app or CI process that imports it.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-11-03 20:49 UTC. All times on this page are UTC.
Exposure requires running fastapi-code-generator (before 0.8.1) on an OpenAPI file that contains an attacker-influenced multi-response operation, and then importing the generated module. Teams that only generate code from their own trusted specs, or that already run 0.8.1 or later, are not affected by this issue. Syntax-breaking input only makes generation fail.
No product ranges from the sources yet.
pip show fastapi-code-generator, and see whether it is below 0.8.1.0.8.1Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
fastapi-code-generator creates FastAPI applications from OpenAPI files. Prior to 0.8.1, the generator inserts an additional response status-code key into the generated responses={...} route-decorator dictionary as a single-quoted Python string without escaping embedded quotes. A multi-response OpenAPI operation with an attacker-controlled or attacker-influenced second non-primary response key can close the dictionary-key literal and inject a valid Python expression. Syntax-breaking input only causes generation to fail, but syntactically valid generated code executes with the application's or CI process's privileges when the generated module is imported and its decorator arguments are evaluated. This additional-response-key sink is distinct from the project's separate route-path and operation-summary sinks. This issue is fixed in version 0.8.1.
This page as .md · .json · in your agent: get_signal("CVE-2026-63469")
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.