CVE Explorer
CVE-2026-55389
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. Prior to 0.62.0, datamodel-code-generator resolves JSON Schema $ref targets in src/datamodel_code_generator/parser/jsonschema.py through is_url and _get_ref_body without containing file:// or ../ traversal references to the input directory and without honoring --no-allow-remote-refs, allowing arbitrary local file reads.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 3 assertions
{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-610","description":"CWE-610: Externally Controlled Reference to a Resource in Another Sphere","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-200","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"datamodel-code-generator","vendor":"koxudaxi","versions":[{"status":"affected","version":"< 0.62.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
3 source assertions{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-610","description":"CWE-610: Externally Controlled Reference to a Resource in Another Sphere","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-200","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/problemTypes/1/descriptions/0
Source references
4 source assertions{"name":"https://github.com/koxudaxi/datamodel-code-generator/commit/2ff4a72b4550a2b2069754c5b075b1655067e5fb","tags":["x_refsource_MISC"],"url":"https://github.com/koxudaxi/datamodel-code-generator/commit/2ff4a72b4550a2b2069754c5b075b1655067e5fb"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/references/1
{"name":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0","tags":["x_refsource_MISC"],"url":"https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/references/2
{"tags":["exploit"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/adp/0/references/0
{"name":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9","tags":["x_refsource_CONFIRM"],"url":"https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0e46176ab799a03b8ba23ac3373a9fff3f8eef288e2c15af8c4ff005d1004c0d · sha256:f766ea9b49d7d5e7… · /containers/cna/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.