SCA: security update for datamodel-code-generator (GHSA-5578-w22f-pfx9)

high Tenable Self-Hosted Container Security Plugin ID 445432

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. From 0.11.6 until 0.64.0,
datamodel-code-generator allows attacker-controlled x-python-import or customTypePath schema extensions to
reach src/datamodel_code_generator/parser/jsonschema.py and generated import handling through
Import.from_full_path and Imports.create_line in src/datamodel_code_generator/imports.py, allowing a
newline to break out of an import statement and execute Python code when the generated model is imported.
This issue is fixed in version 0.64.0. (CVE-2026-55415)

Solution

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

See Also

https://github.com/advisories/GHSA-5578-w22f-pfx9

Plugin Details

Severity: High

ID: 445432

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

Temporal Score: 5.6

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

CVSS Score Source: CVE-2026-55415

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:H/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-55415