All reports
High

openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation

Affected versions

Version ranges need review.

Affected versions
< 0.29.1
Fixed version
0.29.1
Affected versions
<0.29.1
Fixed version
0.29.1

Exploitation

CVE-2026-105801

Probability of exploitation in the next 30 days: 0.14%

FIRST EPSS · 2026-11-22

Description

Impact

A malicious OpenAPI document processed by any openapi-python-client prior to 0.29.1 can generate arbitrary Python code. When anyone imports the malicious client, that arbitrary Python code will execute.

Patches

Versions starting with 0.29.1 have updated with guardrails to prevent arbitrary code generation. Upgrade to this version immediately and audit any code previously generated from untrusted documents.

Workarounds

Do not generate clients for documents you don't completely trust. Carefully verify any existing generated code from untrusted documents.

Links

Credits

  • Gal3m
  • iabdullah215
  • 0xsharz