{
  "id": "CVE-2026-54691",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-54691",
  "published_at": "2026-07-28T21:29:52.197Z",
  "title": "datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects",
  "vendor": "koxudaxi",
  "product": "datamodel-code-generator",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-918",
  "cvss_by_source": {
    "cna": 8.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "koxudaxi",
        "product": "datamodel-code-generator",
        "ranges": [
          "\u003e= 0.9.1, \u003c 0.61.0"
        ],
        "fixed_in": [
          "0.61.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade datamodel-code-generator to 0.61.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
