Code Execution Vulnerability in Orval JavaScript Client Generator
CVE-2026-71866
9.3CRITICAL
What is CVE-2026-71866?
A security flaw in Orval, a tool for generating type-safe JavaScript clients from OpenAPI and Swagger specifications, allows attackers to execute arbitrary JavaScript code due to unsafe encoding of a double quote in schema property names. This issue affects versions 8.19.0 through 8.21.0 specifically during the zod.object schema generation process. When the generated module is imported, the attacker-controlled input could lead to unintended code execution in various environments, including development and CI/CD pipelines. The vulnerability is rectified in Orval version 8.21.0.
Affected Version(s)
orval < 8.21.0
