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.
CVE-2026-55389
This high-severity CVE scores 7.5 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.4%, top 71% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EG Risk
- 65(Attend)EG Risk 65/100SSVC: Attend
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation40% × 40%Automatability100% × 15%Action: Remediate soon — notable exploitation risk. - EPSS PROB
- 0%
- EPSS %ILE
- 29%
- KEV
- Not listed
Published
July 28, 2026
Last Modified
July 29, 2026
Advisory Details (3)
Auto-updated Jul 28, 20260.62.0
Patch available: koxudaxi/datamodel-code-generator 0.62.0
https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0commit 2ff4a72b4550 (koxudaxi/datamodel-code-generator)
Patch available: koxudaxi/datamodel-code-generator 0.62.0 (contains commit 2ff4a72b4550)
https://github.com/koxudaxi/datamodel-code-generator/commit/2ff4a72b4550a2b2069754c5b075b1655067e5fbArbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs` · Advisory · koxudaxi/datamodel-code-generator · GitHub
https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9Vendor Advisories for CVE-2026-55389(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| datamodel-code-generator | 0.0.1 ... 0.9.4 (252 versions) | 0.62.0 | — |
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 7× in last 7d / 7× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-30 11:26 UTCEG score recompute
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-29 13:39 UTCEG score recompute
- 2026-07-29 12:38 UTCEG score recompute
- 2026-07-28 22:26 UTCEG score recompute
- 2026-07-28 21:54 UTCEG score recompute
- 2026-07-28 21:52 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-55389?
When was CVE-2026-55389 disclosed?
Is CVE-2026-55389 actively exploited?
What is the CVSS score of CVE-2026-55389?
How do I remediate CVE-2026-55389?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-55389
Is Your Infrastructure Affected by CVE-2026-55389?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.