Code Execution Vulnerability in Orval JavaScript Client Generation Tool
CVE-2026-71867
9.3CRITICAL
What is CVE-2026-71867?
Orval, a tool for generating type-safe JavaScript clients from OpenAPI and Swagger specifications, contains a vulnerability that allows attacker-controlled JavaScript to be executed. This issue arises from the improper handling of single quotes in schema property names, which are incorporated into the generated MSW mock factories without adequate encoding. The flawed code exists in the function responsible for generating object keys for mocks, potentially allowing malicious actors to run unverified code in development, CI, or application environments. This vulnerability was addressed in version 8.21.0.
Affected Version(s)
orval < 8.21.0
