CVE & CISA-KEV Catalog

CVE-2026-54653

HIGH
8.8
CVSS v3
NVD

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.17.0 until 0.60.2, datamodel-code-generator preserves attacker-controlled default_factory values in src/datamodel_code_generator/parser/jsonschema.py through JsonSchemaObject.init and get_field_extras and emits them into Field(default_factory=...) or field(default_factory=...), allowing Python expression execution when the generated model is imported. This issue is fixed in version 0.60.2.

How to fix

Remediation Available
datamodel-code-generatorNVD
Affected:>= 0.17.0, < 0.60.2Fixed in:0.60.2CVE-2026-54653derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

0.37%probability of exploitation in 30 days
30thpercentile

Low risk: more likely to be exploited than 30% of all known CVEs.

References

Exploit1
Third-Party Advisory1
Release Notes1

Related Vulnerabilities

Other CWE-94 (Code Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-9841Critical9.8100%KEVFix
CVE-2015-1635Critical9.8100%KEV-
CVE-2025-3248Critical9.8100%KEV + RansomFix
CVE-2022-22954Critical9.8100%KEV + Ransom-
CVE-2025-49704High8.8100%KEV + RansomFix
CVE-2021-22204Medium6.8100%KEVFix

Common questions

How do I fix CVE-2026-54653?

Upgrade datamodel-code-generator to 0.60.2 or later.

Is CVE-2026-54653 being actively exploited?

Not that we know of. CVE-2026-54653 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.37% is the estimated probability that it will be exploited in the next 30 days. That is higher than 30% of all scored CVEs.

How severe is CVE-2026-54653?

CVE-2026-54653 has a CVSS v3 base score of 8.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-54653 affect?

Published advisories record a fix for datamodel-code-generator (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-54653
CVE-2026-54653 severity badge

Markdown

[![CVE-2026-54653](https://tridentstack.com/cve/badge/CVE-2026-54653.svg)](https://tridentstack.com/cve/CVE-2026-54653)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-54653"><img src="https://tridentstack.com/cve/badge/CVE-2026-54653.svg" alt="CVE-2026-54653"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-08-06.