Eval Injection Affecting datamodel-code-generator package, versions [0.11.6,0.64.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DATAMODELCODEGENERATOR-18385352
  • published29 Jul 2026
  • disclosed28 Jul 2026
  • creditthegr1ffyn

Introduced: 28 Jul 2026

NewCVE-2026-55415  (opens in a new tab)
CWE-94  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade datamodel-code-generator to version 0.64.0 or higher.

Overview

datamodel-code-generator is a Datamodel Code Generator

Affected versions of this package are vulnerable to Eval Injection via unsanitized input in the from_full_path and create_line functions. An attacker can execute arbitrary code at import time by supplying malicious schema extensions that inject statements into generated import lines.

CVSS Base Scores

version 4.0
version 3.1