1. Home
  2. Vulnerabilities
  3. CVE-2026-63469

CVE-2026-63469

fastapi-code-generator: Import-time RCE via response status-code key -> unescaped @app.get(..., responses={...}) dict

Published 3 Nov 2026 · modified 9 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 56/100

Summary

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.

Affected products and versions

Koxudaxi (1 line(s))
Koxudaxi
ProductVersionsFixed inSource
fastapi-code-generator Versions not specified — CNA (vendor or assigner)
Pypi (1 line(s))
Pypi
ProductVersionsFixed inSource
fastapi-code-generator before 0.8.1 (excluded) 0.8.1 GitHub Advisory

Fix

Upgrade — PyPI/fastapi-code-generator 0.8.1official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (CVSS 4.0, CNA:GitHub_M)
Weakness
CWE-94 · Injection de commandes / code

How this data is obtained and calculated