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.
CVE-2026-63720
Score 7.5 from GitHub Security Advisory (severity: HIGH) published 2026-07-26. a secondary CVSS source baseline 7.5; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.5
- EG Score
- 7.5(high)
- EG Risk
- 38(Track)EG Risk 38/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation0% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 34%
- KEV
- Not listed
Published
July 26, 2026
Last Modified
July 26, 2026
Advisory Details (3)
Auto-updated Jul 26, 2026datamodel-code-generator Code Injection via Unvalidated customBasePath Schema Field | Advisories | VulnCheck
https://www.vulncheck.com/advisories/datamodel-code-generator-code-injection-via-unvalidated-custombasepath-schema-fieldGitHub - koxudaxi/datamodel-code-generator: Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV. · GitHub
https://github.com/koxudaxi/datamodel-code-generatorcommit 545a96c5 (koxudaxi/datamodel-code-generator)
Patch available: koxudaxi/datamodel-code-generator 0.70.0 (contains commit 545a96c5)
https://github.com/koxudaxi/datamodel-code-generator/commit/545a96c5Vendor Advisories for CVE-2026-63720(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 9× in last 7d / 9× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-27 14:14 UTCEPSS rescore
- 2026-07-27 07:22 UTCGHSA enrichment
- 2026-07-26 18:22 UTCEG score recompute
- 2026-07-26 18:22 UTCGHSA enrichment
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-26 05:25 UTCEG score recompute
- 2026-07-26 05:10 UTCEG score recompute
- 2026-07-26 05:07 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-94
- CVE-2003-1432EG 10.0EPSS p94HIGH
- CVE-2002-0495EG 10.0EPSS p96HIGH
- CVE-1999-0702EG 10.0EPSS p98HIGH
- CVE-1999-0509EG 10.0EPSS p98HIGH
- CVE-2006-1318EG 9.3EPSS p96HIGH
- CVE-2006-1301EG 9.3EPSS p95HIGH
- CVE-2006-1308EG 9.3EPSS p95HIGH
- CVE-2006-1309EG 9.3EPSS p95HIGH
- CVE-2006-1304EG 9.3EPSS p95HIGH
- CVE-2006-1306EG 9.3EPSS p95HIGH
Frequently asked(5)
What is CVE-2026-63720?
When was CVE-2026-63720 disclosed?
Is CVE-2026-63720 actively exploited?
What is the CVSS score of CVE-2026-63720?
How do I remediate CVE-2026-63720?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-63720
Is Your Infrastructure Affected by CVE-2026-63720?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.