{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-54656","published":"2026-07-28T22:17:40.507000Z","last_modified":"2026-10-23T23:10:00.157000Z","status":"Analyzed","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":[{"criteria":"cpe:2.3:a:koxudaxi:datamodel-code-generator:*:*:*:*:*:*:*:*","part":"a","vendor":"koxudaxi","product":"datamodel-code-generator","version_start_including":"0.52.1","version_end_excluding":"0.60.2"}],"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-8m8r-38jm-f355","ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[{"introduced":"0.52.1","fixed":"0.60.2"}],"versions":["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-3559","ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[{"introduced":"0.52.1","fixed":"0.60.2"}],"versions":["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-54656/","html_en":"/en/cve/CVE-2026-54656/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-54656","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-54656"},"untrusted":{"vendor_name":"Koxudaxi","product_name":"Datamodel-code-generator","desc_en":"datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.52.1 until 0.60.2, datamodel-code-generator interpolates validators from --extra-template-data in src/datamodel_code_generator/model/pydantic_v2/base_model.py through _process_validators into @field_validator decorators without safe validation, allowing Python code execution when the generated Pydantic v2 model 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/a43d02906111a2fdcaf13ee5b62eb2da85376f19","tags":["Patch"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.2","tags":["Release Notes"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8m8r-38jm-f355","tags":["Exploit","Vendor Advisory"]}]}}