Vulnerability

CVE-2026-55390

highCVSS 3.1 7.5Published 28 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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 products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /koxudaxi/datamodel-code-generator/commit/d2d5cecd9fd3a2a6d…
  • github.com /koxudaxi/datamodel-code-generator/releases/tag/0.62.0
  • github.com /koxudaxi/datamodel-code-generator/security/advisories/GHSA…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning