swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| acacode | swagger-typescript-api | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Acacode | Swagger-typescript-api |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-w284-33mx-6g9v | swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.359% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Acacode
Acacode swagger-typescript-api |
|
| Vendors & Products |
Acacode
Acacode swagger-typescript-api |
|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | swagger-typescript-api generates API clients for Fetch or Axios from an OpenAPI Specification. Prior to 13.12.2, src/schema-routes/schema-routes.ts passes OpenAPI path keys through parseRouteName to templates/default/procedure-call.ejs and templates/modular/procedure-call.ejs without escaping JavaScript template literal interpolation, allowing an attacker-controlled path containing ${...} to execute when the generated method is called. This issue is fixed in version 13.12.2. | |
| Title | swagger-typescript-api vulnerable to code injection via unescaped OpenAPI path strings in generated method bodies | |
| Weaknesses | CWE-1336 CWE-74 CWE-94 |
|
| References |
|
|
| Metrics |
cvssV3_1
|