CVE-2026-54654: datamodel-code-generator generates Python data models from schema definitions
CVE-2026-54654 is a high-severity flaw (CVSS 7.8) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
datamodel-code-generator generates Python data models from schema definitions. From 0.14.1 until 0.60.2, the --extra-template-data comment field is rendered into Python comments in src/datamodel_code_generator/model/template/TypeAliasAnnotation.jinja2, src/datamodel_code_generator/model/template/TypedDict.jinja2, src/datamodel_code_generator/model/template/dataclass.jinja2, src/datamodel_code_generator/model/template/msgspec.Struct.jinja2, src/da
Why this priority
- High severity
No fix is published yet: follow the downgrade or mitigation steps.
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-54654?
No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.
Is CVE-2026-54654 being exploited?
CVE-2026-54654 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-54654 affect?
CVE-2026-54654 affects affected software. Severity is high (CVSS 7.8). datamodel-code-generator generates Python data models from schema definitions. From 0.14.1 until 0.60.2, the --extra-template-data comment field is rendered into Python comments in src/datamodel_code_generator/model/template/TypeAliasAnnota
How urgent is CVE-2026-54654?
Priority 30/100. High severity