Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a5
- https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rf
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rf
FAQ
What is CVE-2026-54691?
CVE-2026-54691 is a vulnerability with a CVSS score of 8.2 (HIGH). 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 targ...
How severe is CVE-2026-54691?
CVE-2026-54691 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-54691?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.