CVE-2026-54621

HIGHPre-NVD 7.87.8
EchelonGraph scoreMEDIUM confidence

This high-severity CVE scores 7.8 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 96% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: epss, secondary
7.8EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 0%CVSS: 7.8Exploit: None knownExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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.

CVSS v3
7.8
EG Score
7.8(medium)
EG Risk
35(Track)
EG Risk 35/100SSVC: Track

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity78% × 45%
Exploitation0% × 40%
Automatability0% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
0%
EPSS %ILE
4%
KEV
Not listed

Published

July 28, 2026

Last Modified

July 30, 2026

Advisory Details (3)

Auto-updated Jul 28, 2026
Patch available. Sources: github, github_commit, github_release.
github_release Patch Available

0.60.1

Patch available: koxudaxi/datamodel-code-generator 0.60.1

https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.1
github_commit Patch Available

commit aec47bc41477 (koxudaxi/datamodel-code-generator)

Patch available: koxudaxi/datamodel-code-generator 0.60.1 (contains commit aec47bc41477)

https://github.com/koxudaxi/datamodel-code-generator/commit/aec47bc414779f4a9992b3919c8f7663afd6c988
github Patch Available

Code injection in `datamodel-code-generator` via unescaped carriage return in GraphQL Union description · Advisory · koxudaxi/datamodel-code-generator · GitHub

https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-j884-q54q-mmx3

Vendor Advisories for CVE-2026-54621(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
PyPI(1)
PackageVulnerable rangeFixed inDependents
datamodel-code-generator0.25.0 ... 0.60.0 (70 versions)0.60.1

Weakness Classification(2)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 9× in last 7d / 49× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-09-15 08:32 UTCEG score recompute
  2. 2026-09-15 03:11 UTCEPSS rescore
  3. 2026-09-14 01:11 UTCEG score recompute
  4. 2026-09-13 16:47 UTCEPSS rescore
  5. 2026-09-13 00:03 UTCEG score recompute
  6. 2026-09-11 21:19 UTCEG score recompute
  7. 2026-09-10 20:11 UTCEG score recompute
  8. 2026-09-10 09:35 UTCEPSS rescore
  9. 2026-09-09 07:58 UTCEG score recompute
  10. 2026-09-08 22:01 UTCEPSS rescore
  11. 2026-09-07 20:54 UTCEG score recompute
  12. 2026-09-07 16:01 UTCEPSS rescore
  13. 2026-09-06 22:47 UTCEG score recompute
  14. 2026-09-06 13:47 UTCEPSS rescore
  15. 2026-09-05 19:09 UTCEG score recompute
  16. 2026-09-05 05:24 UTCEG score recompute
  17. 2026-09-04 11:59 UTCEG score recompute
  18. 2026-09-04 05:06 UTCEPSS rescore
  19. 2026-09-02 14:12 UTCEPSS rescore
  20. 2026-09-01 22:50 UTCEG score recompute
  21. 2026-09-01 13:54 UTCEPSS rescore
  22. 2026-09-01 04:40 UTCEPSS rescore
  23. 2026-08-31 00:32 UTCEG score recompute
  24. 2026-08-30 19:17 UTCEPSS rescore
  25. 2026-08-30 12:00 UTCEG score recompute
Show 64 more
  1. 2026-08-30 01:22 UTCEPSS rescore
  2. 2026-08-29 23:28 UTCEG score recompute
  3. 2026-08-28 21:41 UTCEPSS rescore
  4. 2026-08-27 20:57 UTCEG score recompute
  5. 2026-08-27 14:25 UTCEPSS rescore
  6. 2026-08-26 14:49 UTCEG score recompute
  7. 2026-08-26 14:46 UTCEPSS rescore
  8. 2026-08-26 02:12 UTCEG score recompute
  9. 2026-08-25 13:49 UTCEPSS rescore
  10. 2026-08-25 01:08 UTCEG score recompute
  11. 2026-08-24 12:36 UTCEG score recompute
  12. 2026-08-23 11:32 UTCEG score recompute
  13. 2026-08-23 00:19 UTCEPSS rescore
  14. 2026-08-22 10:28 UTCEG score recompute
  15. 2026-08-21 23:49 UTCEPSS rescore
  16. 2026-08-21 09:24 UTCEG score recompute
  17. 2026-08-20 22:55 UTCEPSS rescore
  18. 2026-08-19 19:48 UTCEG score recompute
  19. 2026-08-19 17:04 UTCEPSS rescore
  20. 2026-08-18 18:38 UTCEG score recompute
  21. 2026-08-18 13:48 UTCEPSS rescore
  22. 2026-08-17 14:32 UTCEG score recompute
  23. 2026-08-17 13:47 UTCEPSS rescore
  24. 2026-08-17 02:00 UTCEG score recompute
  25. 2026-08-16 14:56 UTCEPSS rescore
  26. 2026-08-16 13:28 UTCEG score recompute
  27. 2026-08-16 02:14 UTCEPSS rescore
  28. 2026-08-15 12:23 UTCEG score recompute
  29. 2026-08-15 01:30 UTCEPSS rescore
  30. 2026-08-13 22:47 UTCEG score recompute
  31. 2026-08-13 22:00 UTCEPSS rescore
  32. 2026-08-12 21:41 UTCEG score recompute
  33. 2026-08-12 13:51 UTCEPSS rescore
  34. 2026-08-11 20:37 UTCEG score recompute
  35. 2026-08-11 08:06 UTCEG score recompute
  36. 2026-08-11 00:00 UTCEPSS rescore
  37. 2026-08-09 18:30 UTCEG score recompute
  38. 2026-08-09 13:46 UTCEPSS rescore
  39. 2026-08-08 17:27 UTCEG score recompute
  40. 2026-08-08 16:37 UTCEPSS rescore
  41. 2026-08-08 04:55 UTCEG score recompute
  42. 2026-08-06 15:20 UTCEG score recompute
  43. 2026-08-06 13:47 UTCEPSS rescore
  44. 2026-08-06 02:48 UTCEG score recompute
  45. 2026-08-05 19:17 UTCEPSS rescore
  46. 2026-08-05 01:41 UTCEG score recompute
  47. 2026-08-04 15:10 UTCEPSS rescore
  48. 2026-08-04 13:09 UTCEG score recompute
  49. 2026-08-04 10:39 UTCEPSS rescore
  50. 2026-08-03 12:04 UTCEG score recompute
  51. 2026-08-03 10:36 UTCEPSS rescore
  52. 2026-08-02 10:59 UTCEG score recompute
  53. 2026-08-02 02:27 UTCEPSS rescore
  54. 2026-08-01 09:55 UTCEG score recompute
  55. 2026-08-01 04:16 UTCEPSS rescore
  56. 2026-07-30 20:13 UTCEG score recompute
  57. 2026-07-30 16:28 UTCEPSS rescore
  58. 2026-07-30 14:24 UTCEG score recompute
  59. 2026-07-30 01:51 UTCEG score recompute
  60. 2026-07-30 01:30 UTCEPSS rescore
  61. 2026-07-29 13:19 UTCEG score recompute
  62. 2026-07-28 22:26 UTCEG score recompute
  63. 2026-07-28 21:55 UTCEG score recompute
  64. 2026-07-28 21:52 UTCMITRE cvelistV5first tracked

Frequently asked(5)

What is CVE-2026-54621?
CVE-2026-54621 is a high vulnerability published on July 28, 2026. datamodel-code-generator generates Python data models from schema definitions. Prior to 0.60.1, GraphQL Union description values in src/datamodelcodegenerator/model/template/UnionTypeStatement.jinja2 and src/datamodelcodegenerator/model/template/UnionTypeStatement.py312.jinja2 are rendered into…
When was CVE-2026-54621 disclosed?
CVE-2026-54621 was first published in the National Vulnerability Database on July 28, 2026, with the most recent update on July 30, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-54621 actively exploited?
CVE-2026-54621 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0% probability of exploitation in the next 30 days, which ranks it in the top 96.1% of all scored CVEs.
What is the CVSS score of CVE-2026-54621?
CVE-2026-54621 has a CVSS v3 base score of 7.8 (NVD).
How do I remediate CVE-2026-54621?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-54621, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-54621

Explore →

Is Your Infrastructure Affected by CVE-2026-54621?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.