CVE-2026-55391

HIGH CVSS 3.1: 7.5 EPSS 0.20%
Updated Jul 30, 2026
Koxudaxi
Parameter Value
CVSS 7.5 (HIGH)
Fixed In 0.63.0
Type CWE-367 (Time-of-check Time-of-use (TOCTOU)), CWE-918 (Server-Side Request Forgery (SSRF)), CWE-350
Vendor Koxudaxi
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products

koxudaxi:datamodel-code-generator