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-07-26
Advisory published
2026-07-26
Advisory updated
2026-07-26

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.

Official resources

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-26T05:16:23.927Z and has not been modified since then.