CVE Catalog

CVE-2026-55390

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.36%

29th percentile - higher than 29% of all known CVEs

Summary

In datamodel-code-generator from 0.59.0 to 0.62.0, XML Schema parsing resolves schemaLocation values in xs:include, xs:import, xs:redefine, and xs:override outside the input base path, allowing arbitrary local files to be read and reflected into generated models.

Risk Assessment

An attacker can provide a crafted XML schema that causes reading of arbitrary local files, leading to exposure of sensitive data.

Recommendation

Update datamodel-code-generator to version 0.62.0 or later, which includes a fix restricting schemaLocation resolution to the base path.

Other vulnerabilities in datamodel-code-generator

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS