CVE-2026-55390koxudaxi datamodel-code-generator
High 7.5 No auth needed
Follow: this CVE · koxudaxi · koxudaxi datamodel-code-generator We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 28, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for datamodel-code-generator.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | datamodel-code-generator |
≥ 0.59.0 < 0.62.0 |
0.62.0 |
pip install "datamodel-code-generator>=0.62.0" |
| PyPI | datamodel-code-generator |
≥ 0.59.0 < 0.62.0 |
0.62.0 |
pip install "datamodel-code-generator>=0.62.0" |
Per OSV / GitHub Advisories (GHSA-442q-2j6p-642g, PYSEC-2026-3556). Check the version in your lockfile before upgrading.
Affected products
- koxudaxi · datamodel-code-generator
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.