CVE-2026-55390
CVE-2026-55390 · Arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 7.5 · Élevée · EPSS 0,6% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: python
Produits et versions concernés
datamodel-code-generator
- Versions du logiciel
- >= 0.59.0, < 0.62.0: Concernée
Aucun correctif publié
datamodel-code-generator PyPI
- Versions du logiciel
- 0.59.0
- 0.59.1
- 0.60.0
- 0.60.1
- 0.60.2
- 0.61.0
- Plages de versions concernées
- ECOSYSTEM: ≥ 0.59.0, < 0.62.0
Mettez à jour vers 0.62.0
Sources originales
- https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-442q-2j6p-642g
- https://github.com/koxudaxi/datamodel-code-generator/commit/d2d5cecd9fd3a2a6dbf148bf0740b83a11fc6820
- https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.62.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-55390