Intel

AIKIDO-2026-11118

swagger-typescript-api is vulnerable to Code Injection

Code InjectionGHSA-w284-33mx-6g9v Published Jun 9, 2026

83

High Risk

This Affects:

JSswagger-typescript-api
0.0.1 - 13.12.1
Fixed in 13.12.2
Are you affected? Scan for Free

TL;DR

swagger-typescript-api interpolates OpenAPI path strings raw into JavaScript template literals in its generated API method bodies without neutralizing ${ } syntax. A path key containing template-literal expressions survives route-name preprocessing and becomes live code in the generated method. Calling an affected method generated from an attacker-controlled spec evaluates the injected expression with the host process privileges on every call. The fix escapes path strings for template-literal insertion while preserving deliberate declared path-parameter interpolations.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

swagger-typescript-api is vulnerable to Code Injection in versions 0.0.1 - 13.12.1.

How to fix this

Upgrade the swagger-typescript-api library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform