{"id":"CVE-2026-105801","published":"2026-10-06T14:53:42Z","modified":"2026-10-09T01:06:15Z","title":"openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation","vendor":"openapi-generators","product":"openapi-python-client","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00199,"percentile":0.05596,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-g3xj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openapi-generators/openapi-python-client/pull/1483","tags":["x_refsource_MISC"]},{"url":"https://github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba431c9dec9186","tags":["x_refsource_MISC"]},{"url":"https://github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1","tags":["x_refsource_MISC"]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":1.12},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"openapi-generators","affectedVersions":[{"vendor":"openapi-generators","product":"openapi-python-client","versions":["< 0.29.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-09T01:06:05.721882Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"openapi-python-client","vulnerableRanges":["<0.29.1"],"patched":["0.29.1"],"from":["GHSA-5293-mq8x-g3xj","PYSEC-2026-4245"],"provenance":"source"}],"summary":{"text":"openapi-python-client, the tool that generates Python clients from OpenAPI documents, fails to properly neutralize malicious content from those documents before rendering it into strings, docstrings, and f-strings in the generated code. An attacker who supplies a crafted OpenAPI document can get attacker-controlled Python into the generated client, which runs when a user imports it, requiring the user to be induced to use and import the malicious client, and the impact is on the importing environment's integrity and potentially its confidentiality and availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:39Z"},"euvd":{"id":"EUVD-2026-93435","exploited":false,"provenance":"source"}}