GHSA-5293-mq8x-g3xj

Suggest an improvement
Source
https://github.com/advisories/GHSA-5293-mq8x-g3xj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-5293-mq8x-g3xj/GHSA-5293-mq8x-g3xj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5293-mq8x-g3xj
Aliases
Published
2026-10-06T15:32:53Z
Modified
2026-10-06T15:46:46Z
Severity
  • 8.4 (High) CVSS_V4 - 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 CVSS Calculator
Summary
openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
Details

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.

Database specific
{
    "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"
}
References

Affected packages

PyPI / openapi-python-client

Package

Name
openapi-python-client
View open source insights on deps.dev
Purl
pkg:pypi/openapi-python-client

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.29.1

Affected versions

0.*
0.1.0.dev0
0.1.0
0.1.1
0.1.2
0.2.0
0.2.1
0.3.0
0.4.0rc1
0.4.0
0.4.1
0.4.2
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.6.0a1
0.6.0a2
0.6.0a3
0.6.0a4
0.6.0
0.6.1
0.6.2
0.7.0rc0
0.7.0rc1
0.7.0rc2
0.7.0rc3
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.9.0
0.9.1
0.9.2
0.10.0
0.10.1
0.10.2
0.10.3
0.10.4
0.10.5
0.10.6
0.10.7
0.10.8
0.11.0
0.11.1
0.11.2
0.11.3
0.11.4
0.11.5
0.11.6
0.12.1
0.12.2
0.12.3
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.14.0
0.14.1
0.15.0
0.15.1
0.15.2
0.16.0
0.16.1
0.17.0
0.17.1
0.17.2
0.17.3
0.18.0
0.19.0
0.19.1
0.20.0
0.21.0
0.21.1
0.21.2
0.21.3
0.21.4
0.21.5
0.21.6
0.21.7
0.22.0
0.23.0
0.23.1
0.24.0
0.24.1
0.24.2
0.24.3
0.25.0
0.25.1
0.25.2
0.25.3
0.26.0
0.26.1
0.26.2
0.27.0
0.27.1
0.28.0
0.28.1
0.28.2
0.28.3
0.28.4
0.29.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-5293-mq8x-g3xj/GHSA-5293-mq8x-g3xj.json"