{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-127208","published":"2026-11-12T21:17:22.933000Z","last_modified":"2026-11-13T17:17:26.743000Z","status":"Deferred","cvss":{"version":"4.0","score":8.6,"severity":"HIGH","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"disclosure@vulncheck.com","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["datamodel-code-generator"],"products":["datamodel-code-generator/datamodel-code-generator"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":69,"links":{"html_es":"/es/cve/CVE-2026-127208/","html_en":"/en/cve/CVE-2026-127208/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-127208","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-127208"},"untrusted":{"vendor_name":"datamodel-code-generator","product_name":"datamodel-code-generator","desc_en":"datamodel-code-generator before 0.84.0 contains a code injection vulnerability that allows attackers to achieve arbitrary code execution by supplying a malicious JSON Schema with a crafted x-python-type annotation containing a string ast.Constant node in a subscript slice position, which bypasses validation in parse_python_type_annotation and _python_type_expr_from_ast. Attackers can embed malicious Python expressions such as __import__ calls within quoted string literals in the generated source code, which Pydantic v2 evaluates as a ForwardRef via eval() during model_rebuild(), resulting in arbitrary code execution on developer workstations, CI/CD pipelines, or applications that generate and import the produced models at runtime.","affected":[{"untrusted_vendor":"datamodel-code-generator","untrusted_product":"datamodel-code-generator"}],"references":[{"url":"https://github.com/datamodel-code-generator/datamodel-code-generator/commit/ebfc11d0644d37a71374b28aac06d98748e584ec","tags":[]},{"url":"https://github.com/datamodel-code-generator/datamodel-code-generator/releases/tag/0.84.0","tags":[]},{"url":"https://www.vulncheck.com/advisories/datamodel-code-generator-code-injection-via-x-python-type-annotation","tags":[]}]}}