cve.bz

CVE-2026-105801 openapi-generators openapi-python-client: Code Injection

8.4 highEPSS 0.1%Fix available

High (8.4) in openapi-generators openapi-python-client. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in openapi-python-client 0.29.1.

On this page
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.

Severity

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
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-116 Improper Encoding or Escaping of Output
CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • openapi-python-client (PyPI): fixed in 0.29.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-105801 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-105801?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-105801?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-105801 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
openapi-generators openapi-python-client< 0.29.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5293-mq8x-g3xjPyPIopenapi-python-client<0.29.10.29.1
PYSEC-2026-4245PyPIopenapi-python-client<0.29.10.29.1

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because successful exploitation enables execution of arbitrary code within the environment importing the generated client. Although an attacker must induce a user to process an untrusted OpenAPI specification, the payload executes automatically upon import and assumes the privileges of the running process. Red Hat Enterprise Linux and other supported enterprise products do not ship openapi-python-client.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-105801.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High
  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-134 Email Injection Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON