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. Prior to 0.60.1, GraphQL Union description values in src/datamodel_code_generator/model/template/UnionTypeStatement.jinja2 and src/datamodel_code_generator/model/template/UnionTypeStatement.py312.jinja2 are rendered into Python comments without neutralizing carriage returns in Python # comments, allowing attacker-controlled GraphQL schema content to inject Python code into generated models that runs when imported. This issue is fixed in version 0.60.1.
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/aec47bc414779f4a9…
- github.com /koxudaxi/datamodel-code-generator/releases/tag/0.60.1
- 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