CVE Explorer
CVE-2026-54691
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"datamodel-code-generator","vendor":"koxudaxi","versions":[{"status":"affected","version":">= 0.9.1, < 0.61.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-918","description":"CWE-918: Server-Side Request Forgery (SSRF)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb","tags":["x_refsource_MISC"],"url":"https://github.com/koxudaxi/datamodel-code-generator/commit/5fdba4a09f2d7a9996a504975b7ef7d63e3715bb"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/cna/references/1
{"name":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0","tags":["x_refsource_MISC"],"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.61.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/cna/references/2
{"name":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx","tags":["x_refsource_CONFIRM"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-rfr2-mq9m-x2qx"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:5f1416f3550dde254fdf968d743a96bee70cafd05927f9fcb235e5baca376aa1 · sha256:f64d3d35fbd8434d… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.