Vulnerability Description
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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/koxudaxi/datamodel-code-generator/commit/d2d5cecd9fd3a2a6dbf1
- https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-44
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-44
FAQ
What is CVE-2026-55390?
CVE-2026-55390 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 xm...
How severe is CVE-2026-55390?
CVE-2026-55390 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-55390?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.