CVE-2026-54653: koxudaxi datamodel-code-generator · Code Injection
Affects koxudaxi datamodel-code-generatorSource CVE Database V5
Not known to be exploited · CVSS 8.8 High : upgrade to 0.60.2 soon.
Data as of 28 Oct 2026, 05:11 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.60.2
CVSS:3.1/AV:N/AC:L/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.60.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| koxudaxidatamodel-code-generator | Affected
| Fixed in
|
AI-suggested
Upgrade datamodel-code-generator to version 0.60.2 or later, where this code injection vulnerability is fixed. Until upgrading, avoid processing untrusted or attacker-controlled input schemas with affected versions. Patch status is confirmed fixed in 0.60.2.
Description
CVE-2026-54653 is a high severity code injection vulnerability in koxudaxi's datamodel-code-generator affecting versions from 0.17.0 up to but not including 0.60.2. The tool generates Python models from various schema formats and improperly preserves attacker-controlled default_factory values, which are emitted into generated code. This allows execution of arbitrary Python expressions when the generated model is imported. The issue is fixed in version 0.60.2.
References
- github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-386q-5hp3-95m9 (opens in a new tab)
- github.com/koxudaxi/datamodel-code-generator/commit/17fc235e234cbcfaaadef8c74cb72c9687db0d1d (opens in a new tab)
- github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.2 (opens in a new tab)
- gist.github.com/thegr1ffyn/9648b0fe4fcf7d569ac8e61dd11eebaf (opens in a new tab)