CVE-2026-54655

HIGH CVSS 3.1: 7.8 EPSS 0.21%
Updated Oct 24, 2026
Python
Parameter Value
CVSS 7.8 (HIGH)
Fixed In 0.60.2
Type CWE-94 (Code Injection)
Vendor Python
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products

koxudaxi:datamodel-code-generator