{"id":"CVE-2026-54660","published":"2026-07-29T14:21:34Z","modified":"2026-07-30T13:43:08Z","title":"swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`","vendor":"acacode","product":"swagger-typescript-api","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00437,"percentile":0.29891,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"},{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-h754-fxp7-88wx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/acacode/swagger-typescript-api/pull/1779","tags":["x_refsource_MISC"]},{"url":"https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de","tags":["x_refsource_MISC"]},{"url":"https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":5.98},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"acacode","affectedVersions":[{"vendor":"acacode","product":"swagger-typescript-api","versions":["< 13.12.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-30T13:41:48.053235Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"swagger-typescript-api","vulnerableRanges":["<13.12.2"],"patched":["13.12.2"],"from":["GHSA-h754-fxp7-88wx"],"provenance":"source"}],"summary":{"text":"The flaw lies in the swagger-typescript-api product's remote schema handling, specifically in the getRemoteRequestHeaders function in src/resolved-swagger-schema.ts, which is used while external $ref URLs are resolved. The tool attaches the user-supplied authorization token to every remote URL it fetches, so an attacker who can supply a malicious OpenAPI specification can cause the developer's or CI system's bearer token to be sent to a cross-origin endpoint, provided the victim generates a client from that specification (user interaction required, no authentication needed for the attacker).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:12Z"},"euvd":{"id":"EUVD-2026-50361","exploited":false,"provenance":"source"}}