Quick answers
- Is CVE-2026-55390 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-55390 being exploited in the wild.
- How severe is CVE-2026-55390?
- High severity, with a CVSS score of 7.5, published 28 July 2026.
- Which products and versions are affected?
- Koxudaxi Datamodel-Code-Generator >= 0.59.0, < 0.62.0, >= 0.59.0, <= 0.61.0; datamodel-code-generator (PyPI) ECOSYSTEM:introduced=0.59.0,fixed=0.62.0.
- Is there a fix for CVE-2026-55390?
- Yes. datamodel-code-generator (PyPI): upgrade to 0.62.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-55390 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-55390?
- Check whether you run Koxudaxi Datamodel-Code-Generator or datamodel-code-generator (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- datamodel-code-generator (PyPI): upgrade to 0.62.0 or later
pip install "datamodel-code-generator>=0.62.0"
Technical details
A path traversal vulnerability exists in the XML Schema (XSD) parser of datamodel-code-generator within `src/datamodel_code_generator/parser/xmlschema.py`. The parser fails to validate that `schemaLocation` attributes in `xs:include`, `xs:import`, `xs:redefine`, and `xs:override` tags remain within the input base directory. By using `../` sequences or absolute paths, an attacker can force the application to read arbitrary local files that the process has permissions to access. If the target file contains XML-structured data, its contents may be reflected in the generated Python models. This issue is reachable in the default configuration and is not mitigated by the `--no-allow-remote-refs` flag. The vulnerability was introduced in version 0.59.0 and is fixed in version 0.62.0 by enforcing that all resolved paths are relative to the base input directory.
Affected products
- koxudaxi datamodel-code-generator >= 0.59.0, < 0.62.0
Identifiers
- CVE-2026-55390
- GHSA-442q-2j6p-642g
- PYSEC-2026-3556
Timeline
- 2026-06-10: patched: Version 0.62.0 released
- 2026-06-12: advisory: GitHub Security Advisory published
- 2026-07-28: disclosed: CVE published to NVD