Back to overview

CVE-2026-54691

HIGH
8.2
CVSS 3.1
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.

Metadata

CVE ID
CVE-2026-54691
State
PUBLISHED
Assigner
GitHub_M
Reserved
2026-06-15 22:58 UTC
Published
2026-07-28 21:29 UTC
Last updated
2026-07-28 21:29 UTC
Primary CWE
CWE-918
CWE-918: Server-Side Request Forgery (SSRF)
Vendor / Product
koxudaxi / datamodel-code-generator
Sources
cve.org  ·  NVD

Severity & Metrics

8.2 HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Affected products (1)
VendorProductPlatformVersions
koxudaxi datamodel-code-generator >= 0.9.1, < 0.61.0
Weakness (CWE)
CWESourceDescription
CWE-918 cna CWE-918: Server-Side Request Forgery (SSRF)
CVSS scores (1)
ScoreSeverityVersionSourceVector
8.2 HIGH 3.1 cna CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
References (3)
Back to overview