Intel

AIKIDO-2026-432875

orval is vulnerable to Code Injection

Code InjectionGHSA-2976-96r3-qc9r Published 2 days ago

81

High Risk

This Affects:

JSorval
8.0.0 - 8.27.0
Fixed in 8.28.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

orval is vulnerable to Code Injection in versions 8.0.0 - 8.27.0.

How to fix this

Upgrade the orval library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform