Disclosure summary
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.
Source-reported weakness categories
CWE-94, CWE-116, CWE-150
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-5293-mq8x-g3xj
Open original source · Updated Oct 06, 2026
openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
Source severity: HIGH / 8.4
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| pip | openapi-python-client | < 0.29.1 | 0.29.1 |
NIST National Vulnerability Database · NVD-CVE-2026-105801
Open original source · Updated Oct 06, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
Original records & references
PUBLISHED 2026-10-06T11:17:17-04:00
MODIFIED 2026-10-06T11:17:17-04:00
INGESTED 2026-10-06T11:45:53-04:00