CVE Catalog

CVE-2026-55391

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

In datamodel-code-generator before version 0.63.0, URL host validation checks the host once but then allows httpx to resolve the host again for the connection, enabling DNS rebinding to bypass allow_private_network=False and reach internal services.

Risk Assessment

An attacker can set up a DNS server that returns an internal address after initial validation, allowing access to internal network services and potential security breaches.

Recommendation

Update datamodel-code-generator to version 0.63.0 or later, which includes a fix preventing DNS rebinding.

Other vulnerabilities in datamodel-code-generator

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS