CVE-2026-105801 Details
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.
A vulnerability in OpenAPI Python Client versions prior to 0.29.1 allows malicious OpenAPI documents to be processed in a way that generates arbitrary Python code. This code executes upon importing the generated client, potentially compromising the integrity of the importing environment and, according to the advisory, its confidentiality and availability as well. The vulnerability arises from the generator's failure to properly sanitize harmful content in OpenAPI documents before incorporating it into strings, docstrings, and f-string contexts in the generated Python code.
Users should upgrade to OpenAPI Python Client version 0.29.1 or later. After upgrading, it's important to audit any code that was previously generated from untrusted OpenAPI documents.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 6, 2026CISA-ADP
Assessed Oct 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| openapi-python-client | < 0.29.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | CVE Modified | CISA-ADP |
| Oct 6, 2026 | New CVE Received | [email protected] |
Volerion