CVE-2026-54691
Published:July 28, 2026
Updated:August 04, 2026
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.
Affected Packages
datamodel-code-generator (CONDA):
Affected version(s) >=0.17.1 <0.61.0Fix Suggestion:
Update to version 0.61.0https://github.com/koxudaxi/datamodel-code-generator.git (GITHUB):
Affected version(s) >=0.9.1 <0.61.0Fix Suggestion:
Update to version 0.61.0datamodel-code-generator (PYTHON):
Affected version(s) >=0.9.1 <0.61.0Fix Suggestion:
Update to version 0.61.0Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Server-Side Request Forgery (SSRF)
EPSS
Base Score:
0.21