SCA: security update for swagger-typescript-api (GHSA-hqj5-cw9f-rx67)

high Tenable Self-Hosted Container Security Plugin ID 445457

Description

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

- swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to
13.12.2, src/code-gen-process.ts createApiConfig copies servers[0].url into apiConfig.baseUrl, and
templates/base/http-clients/fetch-http-client.ejs interpolates apiConfig.baseUrl into the generated
HttpClient baseUrl field without escaping, allowing an attacker-controlled OpenAPI spec to inject
TypeScript static field code that executes when the generated fetch client module is imported. This issue
is fixed in version 13.12.2. (CVE-2026-54662)

Solution

Update the swagger-typescript-api library and its related packages to version 13.12.2 or later.

See Also

https://github.com/advisories/GHSA-hqj5-cw9f-rx67

Plugin Details

Severity: High

ID: 445457

Version: Revision 1.2

Type: Local

Family: SCA Checks

Published: 7/29/2026

Updated: 7/30/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 93.94

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

CVSS v3

Risk Factor: High

Base Score: 8.3

Temporal Score: 7.2

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/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/29/2026

Vulnerability Publication Date: 7/29/2026

Reference Information

CVE: CVE-2026-54662