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

- Severity: High 8.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-10-06T14:53:42.461Z
- Modified: 2026-10-15T14:55:35.768Z
- Also known as: GHSA-5293-mq8x-g3xj, PYSEC-2026-4245
- Weaknesses: CWE-94, CWE-116, CWE-150
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- openapi-generators openapi-python-client: < 0.29.1
- openapi-python-client (PyPI): before 0.29.1

## Every score

- GitHub_M: CVSS:4.0 8.4 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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

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

## Sources

- CVE List: [CVE-2026-105801](https://www.cve.org/CVERecord?id=CVE-2026-105801), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-5293-mq8x-g3xj](https://github.com/advisories/GHSA-5293-mq8x-g3xj), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-105801](https://nvd.nist.gov/vuln/detail/CVE-2026-105801), Public domain, modified 2026-10-09
- PyPA Advisory Database: [PYSEC-2026-4245](https://osv.dev/vulnerability/PYSEC-2026-4245), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-105801 · Whole record: https://cve.day/CVE-2026-105801.json · Rebuilt by cve.day 2026-11-25T22:59:42.361Z
