swagger-typescript-api is vulnerable to Code Injection
83
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
swagger-typescript-api is vulnerable to Code Injection in versions 0.0.1 - 13.12.1.
Upgrade the swagger-typescript-api library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant