orval is vulnerable to Code Injection
81
High Risk
Orval's generated fetch client builds multipart FormData requests by splicing OpenAPI schema property names into a backtick template literal used as the wire key. A property name containing a backtick or a ${} sequence closes the template and injects arbitrary JavaScript into the generated upload function. When a developer generates a client from an untrusted OpenAPI document and the affected request runs, the injected code executes with the privileges of the host process. The fix serializes each wire key as a context-appropriate string literal before emitting it.
You are affected if you are using a version that falls within the vulnerable range and you generate the fetch client from an untrusted or externally influenced OpenAPI document that defines a multipart request body.
orval is vulnerable to Code Injection in versions 8.0.0 - 8.27.0.
Upgrade the orval 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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.