Read the docs

Malicious OpenAPI documents inject code into openapi-python-client

Priority MEDIUM 43CWE-116Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

openapi-python-client before 0.29.1 generates Python clients from OpenAPI documents without safely neutralizing document content rendered into strings, docstrings and f-strings (CWE-94). The generated client can contain attacker-controlled Python that runs when a user imports it, affecting the importing environment's integrity and potentially its confidentiality and availability.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00139 3rd percentileScored 2026-11-07
Fix Fixed openapi-python-client (openapi-generators): 0.29.1openapi-python-client (PyPI): 0.29.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
openapi-generatorsopenapi-python-clientbefore 0.29.10.29.1Patch availableCNA
—openapi-python-client (PyPI)before 0.29.10.29.1Patch availableGHSA-5293-mq8x-g3xj
  • openapi-python-client Vendoropenapi-generators Affected before 0.29.1 Fixed in 0.29.1 Patch available CNA
  • openapi-python-client (PyPI) Vendor— Affected before 0.29.1 Fixed in 0.29.1 Patch available GHSA-5293-mq8x-g3xj

Remediation

Upgrade the PyPI package openapi-python-client to version 0.29.1, which fixes this issue. The sources list no fixed version for openapi-python-client under the openapi-generators vendor entry.

Written with Claude Haiku 5.5 from the sources below · 2026-10-29

  • Fix · CNA openapi-python-client (openapi-generators) Fixed in 0.29.1
  • Fix · GHSA-5293-mq8x-g3xj openapi-python-client (PyPI) Fixed in 0.29.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-06 Threatist record created from CVE-2026-105801
  2. 2026-10-06 Alias added: GHSA-5293-mq8x-g3xj
  3. 2026-10-06 Fix available: PyPI/[email protected] · GHSA-5293-mq8x-g3xj
  4. 2026-10-06 CVSS score added · GHSA-5293-mq8x-g3xj
  5. 2026-10-06 Weakness changed · GHSA-5293-mq8x-g3xj
  6. 2026-10-06 6 new references · GHSA-5293-mq8x-g3xj
  7. 2026-10-07 Affected versions changed · Red Hat
  8. 2026-10-07 CVSS score added · Red Hat
  9. 2026-10-07 Priority changed: MEDIUM → LOW
  10. 2026-10-09 CISA SSVC decision points changed
  11. 2026-10-09 Priority changed: LOW → MEDIUM

References

Sources