PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-63720 koxudaxi CVE debrief

CVE-2026-63720 is a high severity vulnerability in datamodel-code-generator prior to version 0.70.0 that allows for remote code execution via a malicious customBasePath value. This vulnerability is caused by a code injection issue where the customBasePath value is emitted verbatim into a generated 'from ... import ...' statement without identifier validation. The vulnerability has a CVSS score of 7.5 and is classified as HIGH severity. Users of datamodel-code-generator prior to version 0.70.0 should be aware of this vulnerability and take steps to mitigate it.

Vendor
koxudaxi
Product
datamodel-code-generator
CVSS
HIGH 7.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-07-26
Original CVE updated
2026-08-12
Advisory published
2026-07-26
Advisory updated
2026-08-12

Who should care

Users of datamodel-code-generator prior to version 0.70.0, particularly those who handle input schemas or manage dependencies, should be aware of this vulnerability and take steps to mitigate it. This includes reviewing and validating input schemas to prevent malicious customBasePath values and implementing additional security measures to detect and prevent code injection attacks.

Technical summary

The datamodel-code-generator library prior to version 0.70.0 contains a code injection vulnerability. This vulnerability 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.

Defensive priority

High priority should be given to updating datamodel-code-generator to version 0.70.0 or later and reviewing input schemas to prevent malicious customBasePath values.

Recommended defensive actions

  • Update datamodel-code-generator to version 0.70.0 or later
  • Review and validate input schemas to prevent malicious customBasePath values
  • Implement additional security measures to detect and prevent code injection attacks
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The CVE record was published on 2026-07-26T05:16:23.927Z and has not been modified since then. The NVD entry is currently being reviewed. Evidence limits suggest that further verification is needed to confirm affected scope and severity. Defenders should verify input schema validation and customBasePath handling in datamodel-code-generator versions prior to 0.70.0.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-63720 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-63720

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-63720 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-63720

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.