CVE-2026-55390CWE-200CWE-22CWE-610path-traversalinformation-disclosure

CVE-2026-55390

High · published July 29, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
44.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00530 · 44.0th percentile
Weaknesses
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor; CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-610 · Externally Controlled Reference to a Resource in Another Sphere
Published
2026-07-29T02:17Z
References (4)
EPSS history
Timeline
  • 28 JUL 21:25Z
    Arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
    cvelistv5