{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-54655","published":"2026-07-28T22:17:40.360000Z","last_modified":"2026-10-23T23:10:00.157000Z","status":"Deferred","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["koxudaxi"],"products":["koxudaxi/datamodel-code-generator"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-m34r-v34r-rf9q","ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[{"introduced":"0.51.0","fixed":"0.60.2"}],"versions":["0.51.0","0.52.0","0.52.1","0.52.2","0.53.0","0.54.0","0.54.1","0.55.0","0.56.0","0.56.1","0.57.0","0.58.0","0.59.0","0.59.1","0.60.0","0.60.1"],"versions_truncated":false},{"advisory":"PYSEC-2026-3562","ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[{"introduced":"0.51.0","fixed":"0.60.2"}],"versions":["0.51.0","0.52.0","0.52.1","0.52.2","0.53.0","0.54.0","0.54.1","0.55.0","0.56.0","0.56.1","0.57.0","0.58.0","0.59.0","0.59.1","0.60.0","0.60.1"],"versions_truncated":false}],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-54655/","html_en":"/en/cve/CVE-2026-54655/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-54655","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-54655"},"untrusted":{"vendor_name":"koxudaxi","product_name":"datamodel-code-generator","desc_en":"datamodel-code-generator generates Python data models from schema definitions. From 0.51.0 until 0.60.2, x-python-type values parsed by src/datamodel_code_generator/parser/jsonschema.py in _get_python_type_override are inserted into generated field annotations without sufficient validation, allowing attacker-controlled JSON Schema content to execute Python code when the generated module is imported. This issue is fixed in version 0.60.2.","affected":[{"untrusted_vendor":"koxudaxi","untrusted_product":"datamodel-code-generator","versions":[]}],"references":[{"url":"https://github.com/koxudaxi/datamodel-code-generator/commit/2c93c9b712f43391dcfa975a1e4aa0b7c93ccbba","tags":[]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.2","tags":[]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-m34r-v34r-rf9q","tags":[]}]}}