SCA: security update for fastapi-code-generator (GHSA-h667-4jj2-cgv4)

critical Tenable Self-Hosted Container Security Plugin ID 478833

Description

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

- fastapi-code-generator creates FastAPI applications from OpenAPI files. Prior to 0.8.1, the generator
inserts Operation.summary into a generated route-handler docstring as a triple-double-quoted string
without escaping embedded triple quotes. An attacker-controlled or attacker-influenced operation summary
can close the docstring and inject a valid Python expression statement into the handler body. Syntax-
breaking input only causes generation to fail, but syntactically valid generated code executes with the
server process's privileges when the affected route handler is called. This call-time route-handler
docstring sink is distinct from the project's separate import-time route-path and additional-response-key
sinks. This issue is fixed in version 0.8.1. (CVE-2026-63470)

Solution

Update the fastapi-code-generator library and its related packages to version 0.8.1 or later.

See Also

https://github.com/advisories/GHSA-h667-4jj2-cgv4

Plugin Details

Severity: Critical

ID: 478833

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 11/9/2026

Updated: 11/9/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.63

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2026-63470

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.1

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 11/9/2026

Vulnerability Publication Date: 11/3/2026

Reference Information

CVE: CVE-2026-63470