CVE-2026-55391

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. Prior to 0.63.0, datamodel-code-generator validates a URL host once in src/datamodel_code_generator/http.py through get_body, _validate_url_for_fetch, and _get_ips_from_host, but then lets httpx resolve the host again for the connection, allowing DNS rebinding to bypass allow_private_network=False and reach internal services. This issue is fixed in version 0.63.0.

SeverityHigh
CVSS7.5
Exploit probability—
ProductKoxudaxi Datamodel-code-generator
PublishedJul 28, 2026
First seenJul 28, 2026

How to fix

Update
  • koxudaxi datamodel-code-generator0.63.0 or later
  • datamodel-code-generator0.63.0 or later

Affected products

ProductAffected versionsFixed in
koxudaxi datamodel-code-generatorv < 0.63.00.63.0
datamodel-code-generatorPyPIv < 0.63.00.63.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-55391 · Koxudaxi Datamodel-code-generator · Dark Radar