SCA: security update for datamodel-code-generator (GHSA-442q-2j6p-642g)

high Tenable Cloud Security Plugin ID 445436

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.59.0 until 0.62.0,
XML Schema parsing in src/datamodel_code_generator/parser/xmlschema.py for --input-file-type xmlschema
resolves xs:include, xs:import, xs:redefine, and xs:override schemaLocation values outside the input base
path, allowing arbitrary local files to be read and reflected into generated models. This issue is fixed
in version 0.62.0. (CVE-2026-55390)

Solution

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

See Also

https://github.com/advisories/GHSA-442q-2j6p-642g

Plugin Details

Severity: High

ID: 445436

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.8

Temporal Score: 5.8

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

CVSS Score Source: CVE-2026-55390

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

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