Server-side Request Forgery (SSRF) Affecting datamodel-code-generator package, versions [,0.63.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.19% (10th 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 IDSNYK-PYTHON-DATAMODELCODEGENERATOR-18388077
  • published29 Jul 2026
  • disclosed28 Jul 2026
  • creditHamza Haroon

Introduced: 28 Jul 2026

NewCVE-2026-55391  (opens in a new tab)
CWE-350  (opens in a new tab)
CWE-367  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

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

Overview

datamodel-code-generator is a Datamodel Code Generator

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the get_body function, which performs DNS resolution validation separately from the actual HTTP connection. An attacker can access internal network resources and potentially retrieve sensitive information by exploiting a DNS rebinding technique that causes the validated hostname to resolve to a public IP during validation and a private/internal IP during connection. This allows bypassing of network access controls and may result in exposure of internal services or credentials.

CVSS Base Scores

version 4.0
version 3.1