{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-63720 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-63720 is a high-severity code injection vulnerability in koxudaxi datamodel-code-generator, published on 26 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-63720 and fix it if it is affected.\n\nWhat it is: CVE-2026-63720 is a high-severity code injection vulnerability in koxudaxi datamodel-code-generator, published on 26 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-63720 in the wild and no public exploit code.\n\nAffected product: koxudaxi datamodel-code-generator. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-63720/ (Markdown: https://insights.sbomify.com/CVE-2026-63720/index.md)","id":"CVE-2026-63720","markdown":"https://insights.sbomify.com/CVE-2026-63720/index.md","name":"CVE-2026-63720","record":{"aliases":["GHSA-7x49-hhjc-29rg"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python code generator","requires_auth":"none","summary":"Attackers can execute arbitrary Python code by injecting malicious expressions into the customBasePath field of input schemas processed by datamodel-code-generator.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-08-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-03T10:36:03Z","kind":"github_poc","ref":"https://github.com/rahulreddykarne/CVE-2026-63720-datamodel-code-generator","stars":0,"title":"Code injection (RCE) in datamodel-code-generator via unvalidated customBasePath (CVE-2026-63720)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"datamodel-code-generator Code Injection via Unvalidated customBasePath Schema Field","id":"CVE-2026-63720","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":5,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-63721"},"packages":[],"prev":{"headline":"Apache HTTP Server: mod_proxy_uwsgi Transfer-Encoding response smuggling","id":"CVE-2026-63718"},"products":["datamodel-code-generator"],"published":"2026-07-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-14","vendors":["koxudaxi"]},"summary":"Attackers can execute arbitrary Python code by injecting malicious expressions into the customBasePath field of input schemas processed by datamodel-code-generator.","url":"https://insights.sbomify.com/CVE-2026-63720/"}