Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
datamodel-code-generator versions before 0.62.0 resolve JSON-Schema $ref targets that point to the local filesystem, including file:// URIs and ../ relative paths, without restricting them to the base directory, and the --no-allow-remote-refs setting does not block them. An attacker who can supply an input schema, without authentication, can read files the process user can read and learn the host's file layout, and schema-shaped content can be copied into generated code returned to them. Upgrade to version 0.62.0 or later, which applies the remote-ref gate to these references.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.5 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0055, the 45th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:29 UTC First seen by agentprime
- 31 Oct 2026, 14:29 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-8359-h9fx-j6v9
- OSV: GHSA-8359-h9fx-j6v9
- github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8359-h9fx-j6v9
- github.com/koxudaxi/datamodel-code-generator/commit/2ff4a72b4550a2b2069754c5b075b1655067e5fb
- github.com/koxudaxi/datamodel-code-generator
- github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0