CVE-2026-63469

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.
CVSS

No CVSS.

Configurations

No configuration.

History

09 Nov 2026, 16:17

Type Values Removed Values Added
References () https://github.com/koxudaxi/fastapi-code-generator/security/advisories/GHSA-6xmv-cjr5-w3q8 - () https://github.com/koxudaxi/fastapi-code-generator/security/advisories/GHSA-6xmv-cjr5-w3q8 -

03 Nov 2026, 20:31

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-03 20:18

Updated : 2026-11-09 16:17


NVD link : CVE-2026-63469

Mitre link : CVE-2026-63469

CVE.ORG link : CVE-2026-63469


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')

CWE-116

Improper Encoding or Escaping of Output