CVE Explorer
CVE-2026-54690
datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.9.1 until 0.61.0, datamodel-code-generator silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs in src/datamodel_code_generator/parser/jsonschema.py through _get_ref_body, and the --allow-remote-refs gate can warn instead of blocking, allowing server-side request forgery through src/datamo
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:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /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:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /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:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /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:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /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:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /containers/cna/references/2
{"name":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-954p-556p-r752","tags":["x_refsource_CONFIRM"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-954p-556p-r752"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-954p-556p-r752"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c3d1ace1a72f563401eb74fdab9bd8d1f5c4099b59bfd672b145b714f0990549 · sha256:668c420c9c6119a1… · /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.