Malicious OpenAPI documents inject code into openapi-python-client
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
openapi-python-client before 0.29.1 generates Python clients from OpenAPI documents without safely neutralizing document content rendered into strings, docstrings and f-strings (CWE-94). The generated client can contain attacker-controlled Python that runs when a user imports it, affecting the importing environment's integrity and potentially its confidentiality and availability.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| openapi-generators | openapi-python-client | before 0.29.1 | 0.29.1 | Patch available | CNA |
| — | openapi-python-client (PyPI) | before 0.29.1 | 0.29.1 | Patch available | GHSA-5293-mq8x-g3xj |
- openapi-python-client Vendoropenapi-generators Affected before 0.29.1 Fixed in 0.29.1 Patch available CNA
- openapi-python-client (PyPI) Vendor— Affected before 0.29.1 Fixed in 0.29.1 Patch available GHSA-5293-mq8x-g3xj
Remediation
Upgrade the PyPI package openapi-python-client to version 0.29.1, which fixes this issue. The sources list no fixed version for openapi-python-client under the openapi-generators vendor entry.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA openapi-python-client (openapi-generators) Fixed in 0.29.1
- Fix · GHSA-5293-mq8x-g3xj openapi-python-client (PyPI) Fixed in 0.29.1 Advisory →
Vendor assessments
Timeline
- 2026-10-06 Threatist record created from CVE-2026-105801
- 2026-10-06 Alias added: GHSA-5293-mq8x-g3xj
- 2026-10-06 Fix available: PyPI/[email protected] · GHSA-5293-mq8x-g3xj
- 2026-10-06 CVSS score added · GHSA-5293-mq8x-g3xj
- 2026-10-06 Weakness changed · GHSA-5293-mq8x-g3xj
- 2026-10-06 6 new references · GHSA-5293-mq8x-g3xj
- 2026-10-07 Affected versions changed · Red Hat
- 2026-10-07 CVSS score added · Red Hat
- 2026-10-07 Priority changed: MEDIUM → LOW
- 2026-10-09 CISA SSVC decision points changed
- 2026-10-09 Priority changed: LOW → MEDIUM
References
Other 5
- https://github.com/openapi-generators/openapi-python-client/security/advisories/GHSA-5293-mq8x-g3xj
- https://github.com/openapi-generators/openapi-python-client/pull/1483
- https://github.com/openapi-generators/openapi-python-client/commit/1c99af478892e5bbe6583b92acba431c9dec9186
- https://github.com/openapi-generators/openapi-python-client/releases/tag/v0.29.1
- https://github.com/openapi-generators/openapi-python-client
Sources
- CVE-2026-105801 · CVE Program
- CVE-2026-105801 · NVD
- FIRST EPSS
- GHSA-5293-mq8x-g3xj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-105801 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences