p PatchFirst

PatchFirst · Latest vulnerabilities

swagger-typescript-api vulnerabilities

Vulnerabilities published for swagger-typescript-api in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 6

  1. CVE-2026-54666

    High · CVSS 8.3EPSS 0.36%Fix available

    swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies

    swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, src/schema-routes/schema-routes.ts passes OpenAPI path keys through parseRouteName to templates/default/procedure-call.ejs and templates/modular/procedure-call.ejs without escaping JavaScript template literal interpolation, allowing an attacker-controlled path containing ${...} to execute when the generated method is called. This issue is fixed in version 13.12.2.

    • Update to 13.12.2
    Published Updated
  2. CVE-2026-54664

    High · CVSS 8.3EPSS 0.48%Fix available

    swagger-typescript-api vulnerable to code injection via unescaped enum string values

    swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, src/schema-parser/base-schema-parsers/enum.ts passes components.schemas.*.enum[i] values to Ts.StringValue in src/configuration.ts without escaping before templates/base/enum-data-contract.ejs renders TypeScript enum declarations, allowing an attacker-controlled OpenAPI spec to inject code that executes when the generated module is imported. This issue is fixed in version 13.12.2.

    • Update to 13.12.2
    Published Updated
  3. CVE-2026-54661

    High · CVSS 8.3EPSS 0.48%Fix available

    swagger-typescript-api vulnerable to code injection via unescaped `servers[0].url` in axios http-client template

    swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, templates/base/http-clients/axios-http-client.ejs interpolates servers[0].url from src/code-gen-process.ts into the HttpClient constructor without escaping, allowing an attacker-controlled OpenAPI spec to inject code that executes when new HttpClient() or new Api() is constructed. This issue is fixed in version 13.12.2.

    • Update to 13.12.2
    Published Updated
  4. CVE-2026-54663

    Medium · CVSS 6.1EPSS 0.22%Fix available

    swagger-typescript-api vulnerable to Server-Side Request Forgery via spec `$ref`

    swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to 13.12.2, src/resolved-swagger-schema.ts warmUpRemoteSchemasCache resolves external $ref URLs and fetchRemoteSchemaDocument uses isHttpUrl to fetch any http or https target without private IP, redirect, DNS rebinding, or same-origin validation, allowing an attacker-controlled OpenAPI spec to make the generator issue requests to internal or link-local services. This issue is fixed in version 13.12.2.

    • Update to 13.12.2
    Published Updated
  5. CVE-2026-54662

    High · CVSS 8.3EPSS 0.35%Fix available

    swagger-typescript-api vulnerable to code injection via unescaped `servers[0].url` in fetch http-client template

    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.

    • Update to 13.12.2
    Published Updated
  6. CVE-2026-54660

    High · CVSS 7.4EPSS 0.31%Fix available

    swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`

    swagger-typescript-api generates API clients for Fetch or Axios from OpenAPI specifications. Prior to 13.12.2, src/resolved-swagger-schema.ts getRemoteRequestHeaders forwards --authorizationToken to every URL fetched by fetchRemoteSchemaDocument while warmUpRemoteSchemasCache resolves external $ref URLs, allowing an attacker-controlled OpenAPI spec to exfiltrate the developer or CI bearer token to a cross-origin endpoint. This issue is fixed in version 13.12.2.

    • Update to 13.12.2
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →