MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-54656GHSA-8m8r-38jm-f355

`datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data

Not on CISA KEVCVSS 7.8 (v3.1)
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CISA Vulnrichment Source: CISA Vulnrichment
  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)