{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-63470","published":"2026-11-03T20:18:15.590000Z","last_modified":"2026-11-03T20:31:38.783000Z","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-h667-4jj2-cgv4","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-63470/","html_en":"/en/cve/CVE-2026-63470/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-63470","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-63470"},"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 Operation.summary into a generated route-handler docstring as a triple-double-quoted string without escaping embedded triple quotes. An attacker-controlled or attacker-influenced operation summary can close the docstring and inject a valid Python expression statement into the handler body. Syntax-breaking input only causes generation to fail, but syntactically valid generated code executes with the server process's privileges when the affected route handler is called. This call-time route-handler docstring sink is distinct from the project's separate import-time route-path 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":"1f7cf4bd64d0d12fef94baf868542bf8","generated":"2026-11-26T23:31:58.922356Z","es":{"untrusted_title":"Inyección de código Python en fastapi-code-generator por resumen de operación s…","untrusted_summary":"fastapi-code-generator genera aplicaciones FastAPI a partir de archivos OpenAPI. Antes de la versión 0.8.1, el generador inserta el resumen de la operación en la cadena de documentación del manejador de ruta sin escapar comillas triples, permitiendo que un atacante inyecte código Python válido que se ejecuta con los privilegios del proceso del servidor cuando se invoca la ruta afectada."},"en":{"untrusted_title":"Python code injection in fastapi-code-generator via unescaped operation summary","untrusted_summary":"fastapi-code-generator creates FastAPI applications from OpenAPI files. Prior to version 0.8.1, the generator inserts the operation summary into the route handler docstring without escaping triple quotes, allowing an attacker to inject valid Python code that executes with the server process's privileges when the affected route is called."},"remediation":{"status":"fix","fixed_versions":["0.8.1"],"untrusted_action_es":"Actualiza fastapi-code-generator a la versión 0.8.1 o superior para escapar correctamente las comillas triples en los resúmenes de operaciones.","untrusted_action_en":"Update fastapi-code-generator to version 0.8.1 or later to properly escape triple quotes in operation summaries.","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-h667-4jj2-cgv4","tags":[]}]},"social":{"people":1,"posts":1,"window_days":30}}