NPM · JULY 2026 · EARLY WARNING

swagger-typescript-api npm Package Under Investigation for Code Injection

EARLY WARNING · UNCONFIRMED. This page describes a developing threat that 0Day surfaced from early signals and has not yet independently confirmed. Details may change. Always verify against the primary sources before acting.
GHSA-38C3-WV3C-V3XJSeverity: HIGH

The swagger-typescript-api npm package is under investigation for a potential code injection vulnerability that could allow arbitrary code execution.

What happened

Reportedly, the swagger-typescript-api npm package interpolates an unescaped URL directly into a TypeScript string literal, potentially leading to code injection. This could enable an attacker to execute arbitrary code with the privileges of the importing process. The vulnerability appears to affect all versions prior to 13.12.2. Users are advised to upgrade to version 13.12.2 once it becomes available and review any generated client code for signs of tampering. The primary source for this vulnerability is the GitHub Security Advisory GHSA-38c3-wv3c-v3xj.

How 0Day mitigates this

MATCHED TO YOUR ACTUAL DEPENDENCY GRAPH0Day matches every incoming threat signal against your GitHub organization’s full dependency graph, including transitive dependencies. If swagger-typescript-api is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.

Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.

Join the 0Day waitlist →

← Back to all threats