SCA: security update for datamodel-code-generator (GHSA-8359-h9fx-j6v9)

high Tenable Cloud Security Plugin ID 445425

Description

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

- 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. Prior to 0.62.0, datamodel-
code-generator resolves JSON Schema $ref targets in src/datamodel_code_generator/parser/jsonschema.py
through is_url and _get_ref_body without containing file:// or ../ traversal references to the input
directory and without honoring --no-allow-remote-refs, allowing arbitrary local file reads. This issue is
fixed in version 0.62.0. (CVE-2026-55389)

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-8359-h9fx-j6v9

Plugin Details

Severity: High

ID: 445425

Version: Revision 1.2

Type: Local

Family: SCA Checks

Published: 7/29/2026

Updated: 7/29/2026

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.73

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

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