CVE-2026-55390
Arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th
datamodel-code-generator generates Python data models from schema definitions. From 0.59.0 until 0.62.0, XML Schema parsing in src/datamodel_code_generator/parser/xmlschema.py for --input-file-type xmlschema resolves xs:include, xs:import, xs:redefine, and xs:override schemaLocation values outside the input base path, allowing arbitrary local files to be read and reflected into generated models. This issue is fixed in version 0.62.0.
| CWE | CWE-22 CWE-200 CWE-610 |
| Vendor | koxudaxi |
| Product | datamodel-code-generator |
| Published | Jul 28, 2026 |
Stay Ahead of the Next One
Get instant alerts for koxudaxi datamodel-code-generator
Be the first to know when new high vulnerabilities affecting koxudaxi datamodel-code-generator are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
Affected Versions
koxudaxi / datamodel-code-generator
>= 0.59.0, < 0.62.0
References
github.com: https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-442q-2j6p-642g github.com: https://github.com/koxudaxi/datamodel-code-generator/commit/d2d5cecd9fd3a2a6dbf148bf0740b83a11fc6820 github.com: https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0