Live threats

All CVEs / koxudaxi

CVE-2026-55390koxudaxi datamodel-code-generator

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Jul 28, 2026
Updated
Oct 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-200, CWE-610
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for datamodel-code-generator.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

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.