[ CVE-2026-105801 · Published 6 Oct 2026 ]
openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
CVSS 8.4
EPSS <1%Fix available
[ Description ]Official 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.
[ Fixes ]Fixes and patches
- openapi-python-client 0.29.1Fixed version · GitHub Advisories · pip package openapi-python-client: upgrade to 0.29.1 or later (affected < 0.29.1)
[ Packages ]Affected open-source packages
- openapi-python-client pipAffected < 0.29.1 · fixed in 0.29.1 · GHSA-5293-mq8x-g3xj
[ References ]References
- github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba…
- github.com/openapi-generators/openapi-python-client/pull/1483
- github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1
- github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-…