CVE-2026-55415: koxudaxi datamodel-code-generator · Code Injection
Affects koxudaxi datamodel-code-generatorSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.64.0 soon.
Data as of 27 Oct 2026, 05:11 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.64.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 28 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade koxudaxi datamodel-code-generator to 0.64.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| koxudaxidatamodel-code-generator | Affected
| Fixed in
|
AI-suggested
Upgrade datamodel-code-generator to version 0.64.0 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Until upgrading, avoid importing generated models from untrusted schema sources that could contain malicious x-python-import or customTypePath extensions.
Description
datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.11.6 until 0.64.0, datamodel-code-generator allows attacker-controlled x-python-import or customTypePath schema extensions to reach src/datamodel_code_generator/parser/jsonschema.py and generated import handling through Import.from_full_path and Imports.create_line in src/datamodel_code_generator/imports.py, allowing a newline to break out of an import statement and execute Python code when the generated model is imported. This issue is fixed in version 0.64.0.
References
- github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-5578-w22f-pfx9 (opens in a new tab)
- github.com/koxudaxi/datamodel-code-generator/commit/577d49569c2254c371a97e495020ae2238a73b84 (opens in a new tab)
- github.com/koxudaxi/datamodel-code-generator/releases/tag/0.64.0 (opens in a new tab)