Vulnerability · Published Oct 6, 2026 · Assigned by GitHub_M

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

High 8.4

In plain English

A high-severity code injection in openapi-python-client from openapi-generators. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.4High
Exploit odds (30 days)0.1%top 96.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIopenapi-python-client0.29.1GHSA-5293-mq8x-g3xj
PyPIopenapi-python-client0.29.1PYSEC-2026-4245

Affected products (as reported)

VendorProductVersions
openapi-generators openapi-python-client < 0.29.1

Weakness: CWE-94, CWE-116, CWE-150 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H

References