CVE-2026-63720
datamodel-code-generator prior to version 0.70.0 contains a code …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/koxudaxi/datamodel-code-generator
- github.com/koxudaxi/datamodel-code-generator/commit/545a96c5
- www.vulncheck.com/advisories/datamodel-code-generator-code-injection-via-unvalidated-custo
- github.com/rahulreddykarne/CVE-2026-63720-datamodel-code-generator
- rahulkarne.com/#/cve/CVE-2026-63720
- nvd.nist.gov/vuln/detail/CVE-2026-63720
- cve.org/CVERecord?id=CVE-2026-63720
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.