DNS Rebinding Vulnerability in Datamodel Code Generator by Koxudaxi
CVE-2026-55391
7.5HIGH
What is CVE-2026-55391?
The Datamodel Code Generator, prior to version 0.63.0, contains a vulnerability that allows DNS rebinding attacks. It improperly validates URLs, enabling potential access to internal services by bypassing the 'allow_private_network=False' setting. This occurs because the tool performs host validation only once, allowing a subsequent resolution by httpx that could lead to exploitation. This vulnerability poses a risk to users by making their internal services accessible under certain conditions.
Affected Version(s)
datamodel-code-generator < 0.63.0
