{"id":"CVE-2026-105801","summary":"openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation","details":"openapi-python-client generates Python clients from OpenAPI documents. Prior to 0.29.1, the generator does not safely neutralize malicious OpenAPI document content before rendering string, docstring, and f-string contexts in generated Python. The generated Python client can contain attacker-controlled Python that executes when a user imports the client, affecting the importing environment's integrity and potentially its confidentiality and availability. This issue is fixed in version 0.29.1.","aliases":["GHSA-5293-mq8x-g3xj"],"modified":"2026-10-07T02:47:26.758208429Z","published":"2026-10-06T14:53:42.461Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105801.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-116","CWE-150","CWE-94"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105801.json"},{"type":"FIX","url":"https://github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba431c9dec9186"},{"type":"FIX","url":"https://github.com/openapi-generators/openapi-python-client/pull/1483"},{"type":"WEB","url":"https://github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1"},{"type":"ADVISORY","url":"https://github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-g3xj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105801"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openapi-generators/openapi-python-client","events":[{"introduced":"0"},{"fixed":"4a2f3db9bc3810588d404ecd66b53ce302532716"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.29.1"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.29.0","v0.28.4","v0.28.3","v0.28.2","v0.28.1","v0.28.0","v0.27.1","v0.27.0","v0.26.2","v0.26.1","v0.26.0","v0.25.3","v0.25.2","v0.25.1","v0.25.0","v0.24.3","v0.24.2","v0.24.1","v0.24.0","v0.23.1","v0.23.0","v0.22.0","v0.21.7","v0.21.6","v0.21.5","v0.21.4","v0.21.3","v0.21.2","v0.21.1","v0.21.0","v0.20.0","v0.19.1","v0.19.0","v0.18.0","v0.17.3","v0.17.2","v0.17.1","v0.17.0","v0.16.1","v0.16.0","v0.15.2","v0.15.1","v0.15.0","v0.14.1","v0.14.0","v0.13.4","v0.13.3","v0.13.2","v0.13.1","v0.13.0","v0.12.3","v0.12.2","v0.12.1","v0.12.0","v0.11.6","v0.11.5","v0.11.4","0.11.4","v.0.11.3","v.0.11.2","v.0.11.1","v.0.11.0","v.0.10.8","v.0.10.7","v.0.10.6","v.0.10.5","v.0.10.4","v.0.10.3","v.0.10.2","v.0.10.1","v.0.10.0","v.0.9.2","v.0.9.1","v.0.9.0","v.0.8.0","v.0.7.3","v.0.7.2","v.0.7.1","v.0.7.0","v.0.7.0-rc.3","v.0.7.0-rc.2","v.0.7.0-rc.1","v.0.7.0-rc.0","v.0.6.2","v.0.6.1","v.0.6.0","v.0.5.5","v.0.5.4","v.0.5.3","v.0.5.2","v.0.5.1","v.0.5.0","v.0.4.2","v.0.4.1","v.0.4.0","v.0.4.0-rc.1","v.0.3.0","v.0.2.1","v.0.2.0","v.0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-105801.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H"}]}