Path Traversal in Koxudaxi Datamodel-Code-Generator

CVE-2026-55390

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 class: Path Traversal (Directory Traversal)

EPSS: 0.004 (29.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-55390?
CVE-2026-55390 is a high-severity vulnerability in Koxudaxi Datamodel-Code-Generator, classified under Path Traversal. CVSS score: 7.5/10. Published 2026-07-28.
How severe is CVE-2026-55390?
High severity. CVSS v3 base score is 7.5 out of 10.