Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-54655: datamodel-code-generator generates Python data models from schema definitions

30
Routine
HIGH 7.8

CVE-2026-54655 is a high-severity flaw (CVSS 7.8) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

datamodel-code-generator generates Python data models from schema definitions. From 0.51.0 until 0.60.2, x-python-type values parsed by src/datamodel_code_generator/parser/jsonschema.py in _get_python_type_override are inserted into generated field annotations without sufficient validation, allowing attacker-controlled JSON Schema content to execute Python code when the generated module is imported. This issue is fixed in version 0.60.2.

Why this priority

  • High severity

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score7.8 (High)
Attack vectorLocal
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.2% (top 89%)
CISA exploited listNo
WeaknessCWE-94
Published2026-07-28
Last modified2026-10-23
Publisher (CNA): GitHub, Inc.

Timeline

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

References

← Back to latest CVEs