Intel

AIKIDO-2026-10236

swagger-typescript-api is vulnerable to Improper Encoding or Escaping of Output

Improper Encoding or Escaping of Output Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 25, 2026

41

Medium Risk

This Affects:

JSswagger-typescript-api
11.0.0 - 13.2.17
Fixed in 13.2.18
Are you affected? Scan for Free

TL;DR

Affected versions of this package allow untrusted OpenAPI fields (e.g., descriptions, examples, patterns) containing */ to prematurely terminate JSDoc comments in generated TypeScript, resulting in malformed code and potential comment injection. An attacker controlling or influencing the OpenAPI specification could craft malicious values that break code generation, inject unintended content into source files, or disrupt build pipelines and downstream tooling. This may enable denial of service in CI/CD processes or facilitate further code manipulation if generated artifacts are trusted or executed without validation.

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 Improper Encoding or Escaping of Output in versions 11.0.0 - 13.2.17.

How to fix this

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