datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.52.1 until 0.60.2, datamodel-code-generator interpolates validators from --extra-template-data in src/datamodel_code_generator/model/pydantic_v2/base_model.py through _process_validators into @field_validator decorators without safe validation, allowing Python code execution when the generated Pydantic v2 model is imported. This issue is fixed in version 0.60.2.
CVE-2026-54656
This high-severity CVE scores 7.8 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.2%, top 87% 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).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EG Risk
- 51(Track*)EG Risk 51/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 computedSeverity78% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 0%
- EPSS %ILE
- 13%
- KEV
- Not listed
Published
July 28, 2026
Last Modified
August 6, 2026
Advisory Details (3)
Auto-updated Jul 28, 20260.60.2
Patch available: koxudaxi/datamodel-code-generator 0.60.2
https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.60.2commit a43d02906111 (koxudaxi/datamodel-code-generator)
Patch available: koxudaxi/datamodel-code-generator 0.60.2 (contains commit a43d02906111)
https://github.com/koxudaxi/datamodel-code-generator/commit/a43d02906111a2fdcaf13ee5b62eb2da85376f19Code execution on import via unescaped `validators` entries in --extra-template-data · Advisory · koxudaxi/datamodel-code-generator · GitHub
https://github.com/koxudaxi/datamodel-code-generator/security/advisories/GHSA-8m8r-38jm-f355Vendor Advisories for CVE-2026-54656(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)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| datamodel-code-generator | 0.52.1 ... 0.60.1 (14 versions) | 0.60.2 | — |
Weakness Classification(1)
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.
- 2026-09-15 08:32 UTCEG score recompute
- 2026-09-15 03:11 UTCEPSS rescore
- 2026-09-13 22:12 UTCEG score recompute
- 2026-09-13 16:47 UTCEPSS rescore
- 2026-09-12 21:27 UTCEG score recompute
- 2026-09-11 20:53 UTCEG score recompute
- 2026-09-10 20:11 UTCEG score recompute
- 2026-09-10 09:35 UTCEPSS rescore
- 2026-09-09 07:57 UTCEG score recompute
- 2026-09-08 22:01 UTCEPSS rescore
- 2026-09-07 20:54 UTCEG score recompute
- 2026-09-07 16:01 UTCEPSS rescore
- 2026-09-06 22:47 UTCEG score recompute
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-05 19:08 UTCEG score recompute
- 2026-09-05 05:24 UTCEG score recompute
- 2026-09-04 11:59 UTCEG score recompute
- 2026-09-04 05:06 UTCEPSS rescore
- 2026-09-02 14:12 UTCEPSS rescore
- 2026-09-01 22:50 UTCEG score recompute
- 2026-09-01 13:54 UTCEPSS rescore
- 2026-09-01 04:40 UTCEPSS rescore
- 2026-08-31 00:02 UTCEG score recompute
- 2026-08-30 19:17 UTCEPSS rescore
- 2026-08-30 11:45 UTCEG score recompute
Show 62 moreShow fewer
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-29 23:28 UTCEG score recompute
- 2026-08-28 21:41 UTCEPSS rescore
- 2026-08-28 01:24 UTCEG score recompute
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-27 00:02 UTCEG score recompute
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-25 23:27 UTCEG score recompute
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-24 22:36 UTCEG score recompute
- 2026-08-24 10:19 UTCEG score recompute
- 2026-08-23 09:44 UTCEG score recompute
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 09:11 UTCEG score recompute
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 08:37 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-19 19:45 UTCEG score recompute
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-18 18:38 UTCEG score recompute
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 14:12 UTCEG score recompute
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 01:56 UTCEG score recompute
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 13:39 UTCEG score recompute
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 13:05 UTCEG score recompute
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-12 23:37 UTCEG score recompute
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-11 23:04 UTCEG score recompute
- 2026-08-11 10:48 UTCEG score recompute
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-09 21:56 UTCEG score recompute
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-08 21:23 UTCEG score recompute
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-07 20:49 UTCEG score recompute
- 2026-08-06 20:15 UTCEG score recompute
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-05 22:48 UTCEG score recompute
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-04 22:13 UTCEG score recompute
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 10:39 UTCEPSS rescore
- 2026-08-03 21:26 UTCEG score recompute
- 2026-08-03 10:36 UTCEPSS rescore
- 2026-08-02 08:36 UTCEG score recompute
- 2026-08-02 02:27 UTCEPSS rescore
- 2026-08-01 08:02 UTCEG score recompute
- 2026-08-01 04:16 UTCEPSS rescore
- 2026-07-30 19:10 UTCEG score recompute
- 2026-07-30 16:28 UTCEPSS rescore
- 2026-07-30 15:59 UTCEG score recompute
- 2026-07-30 03:43 UTCEG score recompute
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-29 15:24 UTCEG score recompute
- 2026-07-29 14:49 UTCEG score recompute
- 2026-07-28 22:26 UTCEG score recompute
- 2026-07-28 21:55 UTCEG score recompute
- 2026-07-28 21:52 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-94
- CVE-2003-1432EG 10.0EPSS p94HIGH
- CVE-2002-0495EG 10.0EPSS p96HIGH
- CVE-1999-0702EG 10.0EPSS p98HIGH
- CVE-1999-0509EG 10.0EPSS p98HIGH
- CVE-2006-1318EG 9.3EPSS p97HIGH
- CVE-2006-1301EG 9.3EPSS p95HIGH
- CVE-2006-1308EG 9.3EPSS p95HIGH
- CVE-2006-1309EG 9.3EPSS p95HIGH
- CVE-2006-1304EG 9.3EPSS p96HIGH
- CVE-2006-1306EG 9.3EPSS p95HIGH
Frequently asked(5)
What is CVE-2026-54656?
When was CVE-2026-54656 disclosed?
Is CVE-2026-54656 actively exploited?
What is the CVSS score of CVE-2026-54656?
How do I remediate CVE-2026-54656?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-54656
Is Your Infrastructure Affected by CVE-2026-54656?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.