CVE-2026-63720koxudaxi datamodel-code-generator
High 7.5 No auth needed
Follow: this CVE · koxudaxi · koxudaxi datamodel-code-generator We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 4.0
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 26, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
datamodel-code-generator prior to version 0.70.0 contains a code injection vulnerability that allows attackers who control input schemas to achieve remote code execution by supplying a malicious customBasePath value containing embedded newlines and a dot-free Python expression. The crafted value is emitted verbatim into a generated 'from ... import ...' statement without identifier validation, causing arbitrary Python code to execute when the generated module is imported.
What to do
- Apply the vendor's security update for datamodel-code-generator.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- koxudaxi · datamodel-code-generator
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- python313-datamodel-code-generator-0.72.3-1.1 on GA media · SUSE · openSUSE-SU-2026:11538-1 · Aug 18, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.