SCA: security update for datamodel-code-generator (GHSA-j884-q54q-mmx3)

high Tenable Self-Hosted Container Security Plugin ID 445433

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. Prior to 0.60.1, GraphQL
Union description values in src/datamodel_code_generator/model/template/UnionTypeStatement.jinja2 and
src/datamodel_code_generator/model/template/UnionTypeStatement.py312.jinja2 are rendered into Python
comments without neutralizing carriage returns in Python # comments, allowing attacker-controlled GraphQL
schema content to inject Python code into generated models that runs when imported. This issue is fixed in
version 0.60.1. (CVE-2026-54621)

Solution

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

See Also

https://github.com/advisories/GHSA-j884-q54q-mmx3

Plugin Details

Severity: High

ID: 445433

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-54621

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-54621