CVE-2026-55390
Published:July 28, 2026
Updated:August 04, 2026
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.
Affected Packages
datamodel-code-generator (CONDA):
Affected version(s) >=0.59.0 <0.62.0Fix Suggestion:
Update to version 0.62.0https://github.com/koxudaxi/datamodel-code-generator.git (GITHUB):
Affected version(s) >=0.59.0 <0.62.0Fix Suggestion:
Update to version 0.62.0datamodel-code-generator (PYTHON):
Affected version(s) >=0.59.0 <0.62.0Fix Suggestion:
Update to version 0.62.0Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.36