Patchfirst
CVE-2026-63469 Critical · 9.3 EPSS 0.5%

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

Fix:upgrade fastapi-code-generator to 0.8.1 or later also fixes CVE-2026-63470, CVE-2026-63471 Details ↓

koxudaxi · fastapi-code-generator

Official description · NVD

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.

Breakdown
17.5 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 3 Nov 2026. No public exploit code or confirmed exploitation is recorded.

Affected versions and fixes

as published in the CVE record

koxudaxi fastapi-code-generator

Affected: < 0.8.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: fastapi-code-generator.

PyPIfastapi-code-generatorGHSA-6xmv-cjr5-w3q8

Upgrade to 0.8.1 or later

Fixes this CVE and 2 other known vulnerabilities in this package (CVE-2026-63470, CVE-2026-63471).

pippip install "fastapi-code-generator>=0.8.1"

The first fix for CVE-2026-63469.

Affected versions

If you runUpgrade to
All versions before 0.8.10.8.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 8 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag (1 duplicate merged)
↑ ↓ chooseEnter openEsc close