SCA: security update for fastapi-code-generator (GHSA-6xmv-cjr5-w3q8)

critical Tenable Self-Hosted Container Security Plugin ID 478838

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 an additional response status-code key into the generated responses={...} route-decorator
dictionary as a single-quoted Python string without escaping embedded quotes. A multi-response OpenAPI
operation with an attacker-controlled or attacker-influenced second non-primary response key can close the
dictionary-key literal and inject a valid Python expression. Syntax-breaking input only causes generation
to fail, but syntactically valid generated code executes with the application's or CI process's privileges
when the generated module is imported and its decorator arguments are evaluated. This additional-response-
key sink is distinct from the project's separate route-path and operation-summary sinks. This issue is
fixed in version 0.8.1. (CVE-2026-63469)

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-6xmv-cjr5-w3q8

Plugin Details

Severity: Critical

ID: 478838

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

Percentile: 53.56

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

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