{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-54691","id":"CVE-2026-54691","title":"datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects","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.","descriptionLong":"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.","published":"2026-07-28T21:29:52.197Z","updated":"2026-10-28T02:30:33.614959749Z","reserved":"2026-06-15T22:58:06.562Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["koxudaxi datamodel-code-generator"],"affectedProducts":[{"vendor":"koxudaxi","product":"datamodel-code-generator","defaultStatus":null,"versions":[{"version":">= 0.9.1, < 0.61.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[">=0.9.1 <0.61.0"],"fixed":["0.61.0"],"advisory":"GHSA-rfr2-mq9m-x2qx"}],"cwes":["CWE-918"],"aliases":["GHSA-rfr2-mq9m-x2qx","PYSEC-2026-3564"],"references":[{"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54691.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54691","tags":["advisory"]},{"url":"https://github.com/koxudaxi/datamodel-code-generator","tags":["package"]},{"url":"https://pypi.org/project/datamodel-code-generator","tags":["package"]},{"url":"https://github.com/advisories/GHSA-rfr2-mq9m-x2qx","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00259,"epssPercentile":0.1787,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-54691","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54691","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-54691","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rfr2-mq9m-x2qx","ok":true,"note":"GHSA-rfr2-mq9m-x2qx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54691","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}