{"id":"ghsa-ghsa-p2mm-64f6-gmpp","seq":5742049,"kind":"advisory","title":"fastapi-code-generator: Import-time RCE via route path -> unescaped @app.get('...') decorator","url":"https://github.com/advisories/GHSA-p2mm-64f6-gmpp","permalink":"https://vulnpulse.app/items/ghsa-ghsa-p2mm-64f6-gmpp","summary":"影響: pip:fastapi-code-generator < 0.8.1 → 0.8.1\nfastapi-code-generator (koxudaxi) emits the OpenAPI path into the generated main.py route decorator as a single-quoted string literal (@app.get('/u/ /x')) without escaping the '. A ' in the path closes the decorator string and, via concatenation, injects a live expression that the decorator argument evaluates when main.py is imported (the ASGI server imports it at startup) -- code execution, no request needed. The path is a pure data field. Verified on fastapi-code-generator 0.8.0 / Python 3 /…","severity":"critical","cvss":null,"techs":["python","fastapi"],"cves":["CVE-2026-63471"],"tags":["GHSA-p2mm-64f6-gmpp","fastapi-code-generator"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-11-09T19:48:08.000Z","fetched_at":"2026-11-10T16:07:52.430Z"}