SCA: security update for fastapi-code-generator (GHSA-p2mm-64f6-gmpp)

critical Tenable Self-Hosted Container Security Plugin ID 497869

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 OpenAPI path into a generated @app.get(...) route decorator as a single-quoted generated route
string without escaping embedded quotes. An attacker-controlled or attacker-influenced OpenAPI path can
close the string and inject a valid Python expression into the decorator argument. 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 the decorator is evaluated. This OpenAPI
path sink is distinct from the project's separate operation-summary docstring and additional-response-key
sinks. This issue is fixed in version 0.8.1. (CVE-2026-63471)

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-p2mm-64f6-gmpp

Plugin Details

Severity: Critical

ID: 497869

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 12/3/2026

Updated: 12/3/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.63

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2026-63471

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