SCA: security update for datamodel-code-generator (GHSA-vx7x-vcc2-c44g)

high Tenable Self-Hosted Container Security Plugin ID 445430

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.63.0, datamodel-
code-generator validates a URL host once in src/datamodel_code_generator/http.py through get_body,
_validate_url_for_fetch, and _get_ips_from_host, but then lets httpx resolve the host again for the
connection, allowing DNS rebinding to bypass allow_private_network=False and reach internal services. This
issue is fixed in version 0.63.0. (CVE-2026-55391)

Solution

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

See Also

https://github.com/advisories/GHSA-vx7x-vcc2-c44g

Plugin Details

Severity: High

ID: 445430

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: Medium

Base Score: 6.1

Temporal Score: 4.5

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

CVSS Score Source: CVE-2026-55391

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/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-55391