Description
orval @orval/core before 8.28.0 contains a code injection vulnerability in the form-data serializer that fails to escape multipart property names in generated template literals. Attackers can inject ${...} expressions into OpenAPI schema property names that execute as live interpolation when the generated client builds FormData bodies with consumer process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| orval-labs | orval | < 8.28.0 | 8.28.0 |
References
- GitHub Security Advisory (GHSA-jwhm-6748-j6pq) vendor-advisory
- https://github.com/orval-labs/orval/pull/3988 patch issue-tracking
- https://github.com/orval-labs/orval/commit/975a769a76151354dead879feadfa3537ff065fe patch
- https://github.com/orval-labs/orval/blob/v8.27.0/packages/core/src/getters/res-req-types.ts#L808 technical-description
- https://github.com/orval-labs/orval product
- VulnCheck Advisory: orval @orval/core before 8.28.0 Code Injection via Form-Data third-party-advisory