MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-54653GHSA-386q-5hp3-95m9

`datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field

Not on CISA KEVCVSS 8.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.17.0 until 0.60.2, datamodel-code-generator preserves attacker-controlled default_factory values 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

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