← CVE Intelligence

CVE-2026-105801

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

Description (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.

Affected (CNA)

Vendor / productVersions
openapi-generators / openapi-python-clientaffected < 0.29.1

CWE

CWE-94, CWE-116, CWE-150

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.