SCA: security update for datamodel-code-generator (GHSA-m34r-v34r-rf9q)

high Tenable Self-Hosted Container Security Plugin ID 445424

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-54655)

Solution

Update the datamodel-code-generator library and its related packages to version 0.60.2 or later.

See Also

https://github.com/advisories/GHSA-m34r-v34r-rf9q

Plugin Details

Severity: High

ID: 445424

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 7/29/2026

Updated: 7/29/2026

Risk Information

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-54655

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 7/28/2026

Vulnerability Publication Date: 7/28/2026

Reference Information

CVE: CVE-2026-54655

cwe: CWE-94