Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-54655
VULNERABILITY

CVE-2026-54655

Common Vulnerabilities and Exposures record

HIGH

Summary

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.

Risk

CVSS
7.8
Severity
HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Timeline

Published
Jul 28, 2026 22:17
Modified
Oct 23, 2026 23:10
Last observed
Oct 23, 2026 20:11

CWE

CWE-94

References