{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-63471","published":"2026-11-03T20:18:15.753000Z","last_modified":"2026-11-07T04:17:32.410000Z","status":"Deferred","cvss":{"version":"4.0","score":9.3,"severity":"CRITICAL","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-94","CWE-116"],"cpes":[],"cpes_truncated":false,"vendors":["koxudaxi"],"products":["koxudaxi/fastapi-code-generator"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-p2mm-64f6-gmpp","ecosystem":"PyPI","name":"fastapi-code-generator","purl":"pkg:pypi/fastapi-code-generator","ranges":[{"introduced":"0","fixed":"0.8.1"}],"versions":["0.0.1","0.0.10","0.0.11","0.0.12","0.0.13","0.0.14","0.0.15","0.0.16","0.0.17","0.0.18","0.0.19","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","0.1.0","0.1.1","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.5.3","0.5.3rc0","0.5.4","0.6.0","0.7.0","0.8.0"],"versions_truncated":false}],"severity":"critical","priority_score":71,"links":{"html_es":"/es/cve/CVE-2026-63471/","html_en":"/en/cve/CVE-2026-63471/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-63471","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-63471"},"untrusted":{"vendor_name":"koxudaxi","product_name":"fastapi-code-generator","desc_en":"fastapi-code-generator creates FastAPI applications from OpenAPI files. Prior to 0.8.1, the generator inserts an OpenAPI path into a generated @app.get(...) route decorator as a single-quoted generated route string without escaping embedded quotes. An attacker-controlled or attacker-influenced OpenAPI path can close the string and inject a valid Python expression into the decorator argument. 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 the decorator is evaluated. This OpenAPI path sink is distinct from the project's separate operation-summary docstring and additional-response-key sinks. This issue is fixed in version 0.8.1.","affected":[{"untrusted_vendor":"koxudaxi","untrusted_product":"fastapi-code-generator"}],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"19f29c5d5c572975d2a0b23c394c4fbb","generated":"2026-11-26T23:36:45.729498Z","es":{"untrusted_title":"Inyección de código Python en fastapi-code-generator por rutas OpenAPI sin esca…","untrusted_summary":"fastapi-code-generator genera aplicaciones FastAPI a partir de archivos OpenAPI. Antes de la versión 0.8.1, el generador inserta rutas OpenAPI en decoradores @app.get(...) sin escapar comillas, permitiendo a un atacante inyectar expresiones Python válidas. El código malicioso se ejecuta con los privilegios de la aplicación o del proceso CI cuando el módulo generado se importa."},"en":{"untrusted_title":"Python code injection in fastapi-code-generator via unescaped OpenAPI paths","untrusted_summary":"fastapi-code-generator generates FastAPI applications from OpenAPI files. Prior to version 0.8.1, the generator inserts OpenAPI paths into @app.get(...) decorators without escaping quotes, allowing an attacker to inject valid Python expressions. The malicious code executes with the application's or CI process's privileges when the generated module is imported."},"remediation":{"status":"fix","fixed_versions":["0.8.1"],"untrusted_action_es":"Actualiza fastapi-code-generator a la versión 0.8.1 o superior.","untrusted_action_en":"Update fastapi-code-generator to version 0.8.1 or later.","vendor_url":"https://github.com/koxudaxi/fastapi-code-generator/releases/tag/0.8.1"},"reviewed":false},"references":[{"url":"https://github.com/koxudaxi/fastapi-code-generator/commit/49301dbdb82170d7f50877419d994b05cb1fa2bc","tags":[]},{"url":"https://github.com/koxudaxi/fastapi-code-generator/commit/b3b9bd66e0b0c4d8c686fda700258104615a1332","tags":[]},{"url":"https://github.com/koxudaxi/fastapi-code-generator/releases/tag/0.8.1","tags":[]},{"url":"https://github.com/koxudaxi/fastapi-code-generator/security/advisories/GHSA-p2mm-64f6-gmpp","tags":[]}]},"social":{"people":1,"posts":1,"window_days":30}}