Skip to main content
← All vulnerabilities
CVE-2026-105801GHSA-5293-MQ8X-G3XJPYSEC-2026-4245

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.29.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • openapi-generators openapi-python-client

    fixed in 0.29.1

  • openapi-python-clientPyPI

    fixed in 0.29.1

References 4

GitHub · openapi-generators/openapi-python-client