CVE-2026-54661
Full vulnerability record from the local CVENow database.
Description
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.
Severity
HIGH
CVSS score
8.3
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-07-29 15:16:25.440000
Last modified
2026-10-23 23:10:00.157000
View original CVE JSON
{
"id": "CVE-2026-54661",
"sourceIdentifier": "[email protected]",
"published": "2026-07-29T15:16:25.440",
"lastModified": "2026-10-23T23:10:00.157",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "swagger-typescript-api genera clientes API para Fetch o Axios a partir de una especificación OpenAPI. Antes de la versión 13.12.2, templates/base/http-clients/axios-http-client.ejs interpola servers[0].url de src/code-gen-process.ts en el constructor de HttpClient sin escapar, lo que permite que una especificación OpenAPI controlada por un atacante inyecte código que se ejecuta cuando se construye un nuevo HttpClient() o un nuevo Api(). Este problema está corregido en la versión 13.12.2."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "acacode",
"product": "swagger-typescript-api",
"versions": [
{
"version": "< 13.12.2",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H",
"baseScore": 8.3,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "CHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.6,
"impactScore": 6.0
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-29T14:55:10.296257Z",
"id": "CVE-2026-54661",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-74"
},
{
"lang": "en",
"value": "CWE-94"
},
{
"lang": "en",
"value": "CWE-1336"
}
]
}
],
"references": [
{
"url": "https://github.com/acacode/swagger-typescript-api/commit/306d59acb8ffbb00f953f807b97234b21f51d9de",
"source": "[email protected]"
},
{
"url": "https://github.com/acacode/swagger-typescript-api/pull/1779",
"source": "[email protected]"
},
{
"url": "https://github.com/acacode/swagger-typescript-api/releases/tag/v13.12.2",
"source": "[email protected]"
},
{
"url": "https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-38c3-wv3c-v3xj",
"source": "[email protected]"
}
]
}