THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-p2mm-64f6-gmpp (critical) — fastapi-code-generator: Import-time RCE via route path -> unescaped @app.get('...') decorator

[GHSA] GHSA-p2mm-64f6-gmpp (critical) — fastapi-code-generator: Import-time RCE via route path -> unescaped @app.get('...') decorator

medgithub_advisoriesPublished 2026-11-09

GHSA-p2mm-64f6-gmpp Severity: critical CVE: CVE-2026-63471

fastapi-code-generator: Import-time RCE via route path -> unescaped @app.get('...') decorator

### Summary

fastapi-code-generator (koxudaxi) emits the OpenAPI path into the generated main.py route decorator as a single-quoted string literal (`@app.get('/u/<path>/x')`) without escaping the `'`. A `'` in the path closes the decorator strin

Indicators of compromise

Original source: https://github.com/advisories/GHSA-p2mm-64f6-gmpp