ShellCodeX vulnerability brief
HIGH
Received
CVE-2026-54655
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.
Published 28 Jul 2026, 22:17 UTC
Last modified 28 Jul 2026, 22:17 UTC
01
Attack profile
The conditions required to exploit this vulnerability and its potential impact.
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
02
Affected products
Product applicability statements supplied with the NVD record.
NVD has not published structured affected-product data for this record.
03
Weakness classification
CWE categories help security teams group the underlying software weakness.
04
Source references
External advisories, patches and technical reports attached to this CVE record.