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. This issue is fixed in version 0.62.0.
Scoring
- Severity
- HIGH
- CVSS base score
- 7.5
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS probability
- 0.43%
- CWE
- CWE-22, CWE-200, CWE-610
- Published
- 2026-07-28
- Last modified
- 2026-07-29
Affected products
- koxudaxi datamodel-code-generator
Weakness type
Related vulnerabilities
- CVE-2026-88069 — Path traversal in Pandora archive extractor allows arbitrary file writes outside the extraction directory in pandora analysis
- CVE-2026-53956 — Rattler vulnerable to package cache path traversal via conda package build string
- CVE-2026-86775 — knowns before 0.30.0 Path Traversal via Document API
- CVE-2026-86099 — Chainlit through 2.12.0 Path Traversal via socket.io sessionId
- CVE-2026-78485 — Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to...
- CVE-2026-19729 — Keycloak-services: keycloak-services: incomplete fix for arbitrary filesystem path probing via keystore parameters
- CVE-2026-87023 — Tanium addressed a path traversal vulnerability in Comply.
- CVE-2026-87030 — Tanium addressed a path traversal vulnerability in Comply.