Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
koxudaxi datamodel-code-generator — `datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data
AV AC PR UI S C I A CVSS EPSS %ile KEV
L L N R U H H H 7.8 .0017 6.8 —
AFFECTED
Product Versions Fixed
datamodel-code-generator >= 0.52.1, < 0.60.2 – —
TIMELINE
Jun 15 Reserved by GitHub_M
Jul 28 EXPLOIT PUBLISHED — CVE-2026-54656 (koxudaxi datamodel-code-generator). Public exploit reference added.
Jul 28 Published (CNA: GitHub_M)
Aug 6 EXPLOIT PUBLISHED — CVE-2026-54656 (koxudaxi datamodel-code-generator). Public exploit reference added.
Description
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.
Lifecycle
Complete event history — 4 events, chronological
| Date | Event | Detail |
| June 15, 2026 | Reserved | Reserved by GitHub_M |
| July 28, 2026 | EXPLOIT PUBLISHED | EXPLOIT PUBLISHED — CVE-2026-54656 (koxudaxi datamodel-code-generator). Public exploit reference added. |
| July 28, 2026 | Published | Published (CNA: GitHub_M) |
| August 6, 2026 | EXPLOIT PUBLISHED | EXPLOIT PUBLISHED — CVE-2026-54656 (koxudaxi datamodel-code-generator). Public exploit reference added. |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| koxudaxi | datamodel-code-generator | — | >= 0.52.1, < 0.60.2 | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-54656 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.