datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| koxudaxi | datamodel-code-generator | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Koxudaxi | Datamodel-code-generator |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-vx7x-vcc2-c44g | datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.305% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Koxudaxi
Koxudaxi datamodel-code-generator |
|
| Vendors & Products |
Koxudaxi
Koxudaxi datamodel-code-generator |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding | |
| Weaknesses | CWE-350 CWE-367 CWE-918 |
|
| References |
| |
| Metrics |
cvssV3_1
|