CVE-2026-105801
published high CVSS 4.0 · 8.4openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| openapi-generators | — | openapi-python-client< 0.29.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| openapi-generators | openapi-python-client | < 0.29.1 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-116 CWE-116: Improper Encoding or Escaping of Output
- CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
References
4- https://github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba431c9dec9186
- https://github.com/openapi-generators/openapi-python-client/pull/1483
- https://github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1
- https://github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-g3xj
Provider assertions
2GitHub_M · cna
openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5e6ad4e0e77e87ae7f37e8daf9657253b3c99d60e533e9221501f7ca688152a1
- Ingested
- 09 Oct 2026, 16:25:58 UTC
- Source record
- Official CVE record