CVE-2026-54664: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in acacode swagger-typescript-api
CVE-2026-54664 is a high-severity vulnerability in the acacode swagger-typescript-api tool that generates TypeScript API clients from OpenAPI specifications. Versions prior to 13.12.2 improperly neutralize special elements in enum values, allowing attacker-controlled OpenAPI specs to inject code that executes when the generated module is imported. This issue is fixed in version 13.12.2.
AI Analysis
Technical Summary
The vulnerability arises because swagger-typescript-api versions before 13.12.2 pass enum values from components.schemas.*.enum[i] to Ts.StringValue without escaping. These values are then rendered in TypeScript enum declarations via templates/base/enum-data-contract.ejs, enabling injection of malicious code. This improper neutralization of special elements (CWE-74) can lead to code execution upon module import. The flaw affects the code generation process and is fixed in version 13.12.2.
Potential Impact
An attacker who can supply a malicious OpenAPI specification can inject code that executes when the generated TypeScript module is imported. This can lead to complete compromise of the environment where the generated code runs, impacting confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to swagger-typescript-api version 13.12.2 or later, where this vulnerability is fixed by properly escaping enum values before rendering. No other mitigation is indicated or required.
CVE-2026-54664: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in acacode swagger-typescript-api
Description
CVE-2026-54664 is a high-severity vulnerability in the acacode swagger-typescript-api tool that generates TypeScript API clients from OpenAPI specifications. Versions prior to 13.12.2 improperly neutralize special elements in enum values, allowing attacker-controlled OpenAPI specs to inject code that executes when the generated module is imported. This issue is fixed in version 13.12.2.
CVSS v3.1
Score 8.3high
Affected software
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
Technical Analysis
The vulnerability arises because swagger-typescript-api versions before 13.12.2 pass enum values from components.schemas.*.enum[i] to Ts.StringValue without escaping. These values are then rendered in TypeScript enum declarations via templates/base/enum-data-contract.ejs, enabling injection of malicious code. This improper neutralization of special elements (CWE-74) can lead to code execution upon module import. The flaw affects the code generation process and is fixed in version 13.12.2.
Potential Impact
An attacker who can supply a malicious OpenAPI specification can inject code that executes when the generated TypeScript module is imported. This can lead to complete compromise of the environment where the generated code runs, impacting confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to swagger-typescript-api version 13.12.2 or later, where this vulnerability is fixed by properly escaping enum values before rendering. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T20:16:46.199Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6a13c09c2644c7f8a6d80e
Added to database: 07/29/2026, 14:52:48 UTC
Last enriched: 07/29/2026, 15:08:31 UTC
Last updated: 07/29/2026, 17:33:41 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.