swagger-typescript-api is vulnerable to Code Injection
83
High Risk
swagger-typescript-api interpolates the OpenAPI servers[0].url value raw into the string literal of its generated axios HTTP client constructor without escaping it. A malicious specification can use computed-property-key injection to break out of the baseURL assignment and run arbitrary JavaScript when consumers instantiate the generated HttpClient or Api class. The injected code executes with the host process privileges. The fix escapes the base URL once at the source before template rendering.
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