datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects
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.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Koxudaxi | Datamodel-code-generator |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rfr2-mq9m-x2qx | datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.259% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| 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 Python data models from schema definitions. From 0.9.1 until 0.61.0, src/datamodel_code_generator/http.py http.get_body accepts --url targets and redirect chain targets without host/IP validation, allowing server-side request forgery against loopback, private, link-local, metadata, and other network-accessible resources. This issue is fixed in version 0.61.0. | |
| Title | datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects | |
| Weaknesses | CWE-918 | |
| References |
| |
| Metrics |
cvssV3_1
|