Vulnerabilities in pkg:pypi/openapi-python-client
PACKAGECVE-2026-105801 is a HIGH malicious openapi documents can cause vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting openapi-python-client libraries in the PyPI ecosystem. The issue involves malicious openapi documents can cause arbitrary code generation. Remediation is available by upgrading affected packages to version 0.29.1.
pkg:pypi/openapi-python-client
Vulnerability advisories affecting package pkg:pypi/openapi-python-client. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5293-mq8x-g3xj | CVE-2026-105801 | HIGH | openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation |
| GHSA-9x4c-63pf-525f | CVE-2020-15142 | HIGH | openapi-python-client Arbitrary Code Generation vulnerability |
| GHSA-7wgr-7666-7pwj | CVE-2020-15141 | LOW | Path Traversal in openapi-python-client |
CVE-2026-105801 at a Glance
How to Fix CVE-2026-105801
To remediate this vulnerability, upgrade all affected openapi-python-client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install openapi-python-client>=0.29.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show openapi-python-client
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-105801, inspect your installed packages using pip:
pip show openapi-python-client
Analyze the terminal output to locate any version of openapi-python-client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.29.1), your application is affected.
Note: The pip show openapi-python-client command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In openapi-python-client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-105801 Affected openapi-python-client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openapi-python-client
|
PyPI |
< 0.29.1
|
0.29.1
|
References
Frequently Asked Questions
What is CVE-2026-105801?
Which openapi-python-client versions are affected?
What version fixes CVE-2026-105801?
Is openapi-python-client affected?
What CWE is associated with CVE-2026-105801?
How can I check PyPI dependencies for CVE-2026-105801?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5293-mq8x-g3xj",
"modified" : "2026-10-06T15:32:53Z",
"published" : "2026-10-06T15:32:53Z",
"aliases" : [ "CVE-2026-105801" ],
"summary" : "openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation",
"details" : "### Impact\nA malicious OpenAPI document processed by any `openapi-python-client` prior to 0.29.1 can generate arbitrary Python code. When anyone imports the malicious client, that arbitrary Python code will execute.\n\n### Patches\nVersions starting with 0.29.1 have updated with guardrails to prevent arbitrary code generation. Upgrade to this version immediately and audit any code previously generated from untrusted documents.\n\n### Workarounds\nDo not generate clients for documents you don't completely trust. Carefully verify any existing generated code from untrusted documents.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "openapi-python-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.29.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-g3xj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105801"
}, {
"type" : "WEB",
"url" : "https://github.com/openapi-generators/openapi-python-client/pull/1483"
}, {
"type" : "WEB",
"url" : "https://github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba431c9dec9186"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openapi-generators/openapi-python-client"
}, {
"type" : "WEB",
"url" : "https://github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116", "CWE-150", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-06T15:32:53Z",
"nvd_published_at" : "2026-10-06T15:17:17Z"
}
}