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.
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.
Do not generate clients for documents you don't completely trust. Carefully verify any existing generated code from untrusted documents.
{
"cwe_ids": [
"CWE-116",
"CWE-150",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-10-06T15:32:53Z",
"nvd_published_at": "2026-10-06T15:17:17Z",
"severity": "HIGH"
}