Skip to content
OpenAdvisories
High · 8.4 CVE-2026-105801 EUVD-2026-93435GHSA-5293-mq8x-g3xjPYSEC-2026-4245

openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation

Published Oct 6, 2026 · Updated Oct 9, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
openapi-generators openapi-python-client < 0.29.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI openapi-python-client < 0.29.1 0.29.1 GHSA-5293-mq8x-g3xj

References