CVE-2026-55389 datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`
HighCVSS 7.5
EPSS 0.55%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| koxudaxi datamodel-code-generator | < 0.62.0; = < 0.62.0 | 0.62.0 | Fixed |
| pypi datamodel-code-generator(PyPI) | < 0.62.0; <= 0.61.0; = 0.0.1; = 0.0.2 +250 more | 0.62.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi datamodel-code-generator(PyPI) | < 0.62.0 | 0.62.0 |
| pypi datamodel-code-generator(PyPI) | = 0.0.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.0.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.0.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.0.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.0.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.0.6 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.1.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.10.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.10.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.10.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.10.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.10 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.11 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.12 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.13 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.14 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.15 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.16 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.17 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.18 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.19 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.2 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi datamodel-code-generator(PyPI) | = 0.11.20 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.6 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.7 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.8 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.11.9 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.12.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.12.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.12.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.12.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.13.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.13.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.13.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.13.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.13.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.13.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.14.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.14.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.15.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.16.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.16.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.17.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.17.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.17.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.18.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.18.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.19.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.10 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.11 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.12 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.13 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.14 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.15 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.16 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.6 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.7 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.8 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.2.9 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.20.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.21.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.21.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.21.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.21.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.21.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.21.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.22.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.22.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.23.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.24.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.24.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.24.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.6 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.7 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.8 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.25.9 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.26.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.26.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.26.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.26.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.26.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.26.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.27.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.27.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.27.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.27.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.28.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.28.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.28.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.28.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.28.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.28.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.29.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.3.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.3.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.3.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.3.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.30.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.30.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.30.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.31.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.31.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.31.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.32.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.33.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.34.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.35.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.36.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.37.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.38.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.39.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.10 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.11 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.6 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.7 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.8 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.4.9 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.40.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.41.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.42.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.42.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.42.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.43.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.43.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.44.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.45.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.46.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.47.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.48.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.49.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.10 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.11 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.12 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.13 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.14 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.15 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.16 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.17 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.18 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.19 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.20 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.21 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.22 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.23 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.24 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.25 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.26 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.27 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.28 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.29 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.3 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.30 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.31 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.32 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.33 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.34 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.35 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.36 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.37 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.38 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.39 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.4 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.5 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.6 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.7 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.8 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.5.9 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.50.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.51.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.52.0 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.52.1 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.52.2 | No fix listed |
| pypi datamodel-code-generator(PyPI) | = 0.53.0 | No fix listed |
References
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9 exploit vendor-advisory
- https://github.com/koxudaxi/datamodel-code-generator/commit/2ff4a72b4550a2b2069754c5b075b1655067e5fb patch
- github.com product
- https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0 release-notes
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory