{"cve":"CVE-2026-54691","nvd":{"published":"2026-07-28T22:17:40.800","modified":"2026-10-23T23:10:00.157","status":"Deferred","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":8.2},"cwes":["CWE-918"],"references":["https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb","https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0","https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx","https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:27.712498749+00:00"},"epss":{"cve":"CVE-2026-54691","score":0.00259,"percentile":0.1748,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-rfr2-mq9m-x2qx","url":"https://osv.dev/vulnerability/GHSA-rfr2-mq9m-x2qx","summary":"datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects","modified":"2026-09-10T03:51:12.018938165Z","packages":[{"ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[">=0.9.1 <0.61.0"],"fixed":["0.61.0"]}]},{"id":"PYSEC-2026-3564","url":"https://osv.dev/vulnerability/PYSEC-2026-3564","summary":"datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects","modified":"2026-08-04T14:30:15.062247391Z","packages":[{"ecosystem":"PyPI","name":"datamodel-code-generator","purl":"pkg:pypi/datamodel-code-generator","ranges":[">=0.9.1 <0.61.0"],"fixed":["0.61.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}