Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
The datamodel-code-generator package, versions 0.59.0 up to but not including 0.62.0, reads files named by XSD schemaLocation attributes in xs:include, xs:import, xs:redefine and xs:override without restricting them to the input directory. An attacker who can supply the input XSD can use ../ traversal or absolute paths to read arbitrary local files, and their contents can appear in the generated output. No authentication is needed, and no existing setting disables this. Upgrade to version 0.62.0 or later.
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 46th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:40 UTC First seen by agentprime
- 31 Oct 2026, 14:40 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-442q-2j6p-642g
- OSV: GHSA-442q-2j6p-642g
- github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-442q-2j6p-642g
- github.com/koxudaxi/datamodel-code-generator/commit/d2d5cecd9fd3a2a6dbf148bf0740b83a11fc6820
- github.com/koxudaxi/datamodel-code-generator
- github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0