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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: None; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-28)
- **CWE:** CWE-94, CWE-116, CWE-150
- **Aliases:** GHSA-5293-mq8x-g3xj, PYSEC-2026-4245
- **Published:** 2026-10-06T14:53:42.461Z
- **Modified:** 2026-10-15T14:55:35.768Z

## Who should check

- Projects that depend on PyPI package openapi-python-client (\< 0.29.1)
- Anyone running openapi-generators openapi-python-client \< 0.29.1

## 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 and fixed versions

- PyPI `openapi-python-client`: affected \< 0.29.1; fixed 0.29.1 (osv)
- openapi-generators openapi-python-client: \< 0.29.1 (cvelist)

## Mitigation

- Upgrade openapi-python-client to 0.29.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-105801. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-105801.md
Affected: openapi-python-client < 0.29.1
Fixed in: 0.29.1

Steps:
1. Search this machine and project for openapi-python-client (PyPI), openapi-generators openapi-python-client: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-105801 being exploited?

There is no confirmed exploitation: CVE-2026-105801 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-105801?

High: CVSS 8.4 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-105801?

openapi-python-client \< 0.29.1.

### Is there a fix for CVE-2026-105801?

Yes. Fixed in 0.29.1. Upgrade openapi-python-client to 0.29.1 or later.

### How do I check if I'm affected by CVE-2026-105801?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-g3xj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-105801>
- vendor: <https://github.com/advisories/GHSA-5293-mq8x-g3xj>
- patch: <https://github.com/openapi-generators/openapi-python-client/pull/1483>
- patch: <https://github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba431c9dec9186>
- other: <https://github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1>
- other: <https://github.com/openapi-generators/openapi-python-client>
- other: <https://pypi.org/project/openapi-python-client>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-105801>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5293-mq8x-g3xj> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4245> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-105801> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-105801>
