Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-54621: datamodel-code-generator generates Python data models from schema definitions

30
Routine
HIGH 7.8

CVE-2026-54621 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. 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

Why this priority

  • High severity

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score7.8 (High)
Attack vectorLocal
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.2% (top 89%)
CISA exploited listNo
WeaknessCWE-94, CWE-1336
Published2026-07-28
Last modified2026-10-23
Publisher (CNA): GitHub, Inc.

Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Timeline

Verify at the official source NVD · CVE Program · Report a problem with this page
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-54621?

No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.

Is CVE-2026-54621 being exploited?

CVE-2026-54621 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-54621 affect?

CVE-2026-54621 affects affected software. Severity is high (CVSS 7.8). 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

How urgent is CVE-2026-54621?

Priority 30/100. High severity

Software pages

Python vulnerabilities

References

← Back to latest CVEs