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.

Weakness Classification (2)

Affected Software (1)

VendorProductVersion
koxudaxi datamodel-code-generator 0.11.6 – 0.64.0

Bug Bounty Relevance

55 / 100
✓ Network accessible
✓ No authentication

CVSS Score

7.5 / 10.0 v3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

EPSS — Exploitation Probability

0.49%
Raw Score 0.004880
Percentile 42.0%
Date 2026-10-29

EPSS Trend

2026-10-29
0.00488
2026-10-28
0.00488

Intelligence Sources

nvd ref →