CVE-2026-55415
HIGH
MEDIUM
Priority: 0.04
BB Relevance:
55/100
Published: 2026-07-28
Modified: 2026-10-23
First seen: 2026-10-29
Status: active
Attack Surface
Network
No Auth
Conf. Impact
Integ. Impact
CVSS Vector Breakdown
AV:
Network
AC:
High
PR:
None
UI:
Required
S:
Unchanged
C:
High
I:
High
A:
High
Description
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.11.6 until 0.64.0, datamodel-code-generator allows attacker-controlled x-python-import or customTypePath schema extensions to reach src/datamodel_code_generator/parser/jsonschema.py and generated import handling through Import.from_full_path and Imports.create_line in src/datamodel_code_generator/imports.py, allowing a newline to break out of an import statement and execute Python code when the generated model is imported. This issue is fixed in version 0.64.0.
Affected Software (1)
| Vendor | Product | Version |
|---|---|---|
| koxudaxi | datamodel-code-generator | 0.11.6 – 0.64.0 |
References & Advisories (3)
Release Notes
Patch
Exploit
Vendor Advisory