SCA: security update for datamodel-code-generator (GHSA-rfr2-mq9m-x2qx)

high Tenable Self-Hosted Container Security Plugin ID 445442

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.9.1 until 0.61.0,
src/datamodel_code_generator/http.py http.get_body accepts --url targets and redirect chain targets
without host/IP validation, allowing server-side request forgery against loopback, private, link-local,
metadata, and other network-accessible resources. This issue is fixed in version 0.61.0. (CVE-2026-54691)

Solution

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

See Also

https://github.com/advisories/GHSA-rfr2-mq9m-x2qx

Plugin Details

Severity: High

ID: 445442

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

Temporal Score: 6.3

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

CVSS Score Source: CVE-2026-54691

CVSS v3

Risk Factor: High

Base Score: 8.2

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/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-54691

cwe: CWE-918