Type-safe JavaScript Client Vulnerability in Orval by Orval Labs
CVE-2026-62681
9.3CRITICAL
What is CVE-2026-62681?
An issue in Orval prior to version 8.21.0 allows unescaped backticks in OpenAPI paths to be emitted into request URL template literals. This vulnerability enables attacker-controlled JavaScript to execute within the environment where these requests are processed, which may include developer, CI, test, or live application environments. The vulnerable code is found in packages/core/src/getters/route.ts, affecting how routes are generated for axios, fetch, react-query, and SWR clients. The flaw has been addressed in the latest release, version 8.21.0.
Affected Version(s)
orval < 8.21.0
