Skip to main content
EPSS 0.3%top 79%

CVE-2026-54666: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in acacode swagger-typescript-api

0
High
VulnerabilityCVE-2026-54666cvecve-2026-54666cwe-74cwe-94cwe-1336
Published: 07/29/2026 (07/29/2026, 14:34:48 UTC)
Source: CVE Database V5
Vendor/Project: acacode
Product: swagger-typescript-api

Description

CVE-2026-54666 is a high-severity vulnerability in swagger-typescript-api prior to version 13.12.2. The issue arises because OpenAPI path keys are passed into JavaScript template literals without proper escaping, allowing attacker-controlled input containing ${...} to be executed when the generated API client method is called. This improper neutralization of special elements leads to potential code injection. The vulnerability is fixed in version 13.12.2.

CVSS v3.1

Score 8.3high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected software

acacode

swagger-typescript-api

Affected versions
<13.12.2
swagger-typescript-api
pkg:npm/swagger-typescript-api
Affected versions
<13.12.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 17:57:43 UTC

Technical Analysis

The swagger-typescript-api tool generates API clients from OpenAPI specifications. In versions before 13.12.2, the source file src/schema-routes/schema-routes.ts passes OpenAPI path keys through parseRouteName into EJS templates (templates/default/procedure-call.ejs and templates/modular/procedure-call.ejs) without escaping JavaScript template literal interpolation. This allows an attacker to inject and execute arbitrary JavaScript code by crafting a malicious path containing ${...} sequences. The vulnerability is categorized under CWE-74 (Improper Neutralization of Special Elements in Output), CWE-94, and CWE-1336. The issue is resolved in version 13.12.2.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the generated API client method, potentially leading to full compromise of the client application, data leakage, or other high-impact consequences. The CVSS 3.1 score of 8.3 reflects high impact on confidentiality, integrity, and availability, with network attack vector, high attack complexity, no privileges required, and user interaction required.

Mitigation Recommendations

Upgrade swagger-typescript-api to version 13.12.2 or later, where this vulnerability is fixed by properly escaping JavaScript template literal interpolation in the code generation templates. No other mitigation is indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-15T22:53:58.560Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a6a13c09c2644c7f8a6d814

Added to database: 07/29/2026, 14:52:48 UTC

Last enriched: 08/06/2026, 17:57:43 UTC

Last updated: 09/13/2026, 00:15:46 UTC

Views: 67

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses