cve.bz

CVE-2026-55390

7.5 highEPSS 0.6%

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 3.1
7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% chance of exploitation in the next 30 days; higher than 45% of CVEs (scores of 2026-10-25)
CWEs
CWE-22, CWE-200, CWE-610
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-442q-2j6p-642gPyPIdatamodel-code-generator>=0.59.0 <0.62.00.62.0
PYSEC-2026-3556PyPIdatamodel-code-generator>=0.59.0 <0.62.00.62.0

References

Check your stackJSON