CVE-2026-54666
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, 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.
Severity
HIGH
CVSS score
8.3
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-07-29 15:16:25.990000
Last modified
2026-10-23 23:10:00.157000
View original CVE JSON
{
"id": "CVE-2026-54666",
"sourceIdentifier": "[email protected]",
"published": "2026-07-29T15:16:25.990",
"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, 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."
},
{
"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, src/schema-routes/schema-routes.ts pasa las claves de ruta OpenAPI a través de parseRouteName a templates/default/procedure-call.ejs y templates/modular/procedure-call.ejs sin escapar la interpolación de literales de plantilla de JavaScript, permitiendo que una ruta controlada por un atacante que contenga ${...} se ejecute cuando se llama al método generado. Este problema está solucionado 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-30T13:46:17.119632Z",
"id": "CVE-2026-54666",
"options": [
{
"exploitation": "poc"
},
{
"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-w284-33mx-6g9v",
"source": "[email protected]"
},
{
"url": "https://github.com/acacode/swagger-typescript-api/security/advisories/GHSA-w284-33mx-6g9v",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}