Arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| koxudaxi | datamodel-code-generator | 0.59.0 to before 0.62.0 | 0.62.0 | Patch available | CNA |
| — | datamodel-code-generator (PyPI) | 0.59.0 to before 0.62.0 | 0.62.0 | Patch available | GHSA-442q-2j6p-642g |
- datamodel-code-generator Vendorkoxudaxi Affected 0.59.0 to before 0.62.0 Fixed in 0.62.0 Patch available CNA
- datamodel-code-generator (PyPI) Vendor— Affected 0.59.0 to before 0.62.0 Fixed in 0.62.0 Patch available GHSA-442q-2j6p-642g
Remediation
- Fix · CNA datamodel-code-generator (koxudaxi) Fixed in 0.62.0
- Fix · GHSA-442q-2j6p-642g datamodel-code-generator (PyPI) Fixed in 0.62.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55390
- 2026-10-03 Alias added: GHSA-442q-2j6p-642g
References
Other 4
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-442q-2j6p-642g
- https://github.com/koxudaxi/datamodel-code-generator/commit/d2d5cecd9fd3a2a6dbf148bf0740b83a11fc6820
- https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0
- https://github.com/koxudaxi/datamodel-code-generator
More koxudaxi vulnerabilities
- TI-2026-84481 Code injection in fastapi-code-generator via OpenAPI route paths CVSS 4.0CRITICAL 9.3
- TI-2026-84480 Code injection in fastapi-code-generator route docstrings CVSS 4.0CRITICAL 9.3
- TI-2026-39960 Information disclosure in koxudaxi datamodel-code-generator CVSS 3.1HIGH 7.5
- TI-2026-39512 datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects CVSS 3.1HIGH 8.2
- TI-2026-39511 datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default) CVSS 3.1HIGH 8.2
- TI-2026-39483 Code injection in koxudaxi datamodel-code-generator CVSS 3.1HIGH 7.8
Sources
- CVE-2026-55390 · CVE Program
- CVE-2026-55390 · NVD
- FIRST EPSS
- GHSA-442q-2j6p-642g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences