Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.3

CVE-2026-62681: Orval generates malicious JavaScript in OpenAPI specifications

CVE-2026-62681 · published 4 days ago
Summary

Orval, a tool for generating TypeScript clients, has a bug that allows attackers to inject malicious code into generated JavaScript. This could lead to code execution on the developer's or application's machine. Update to version 8.21.0 to fix the issue.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
orval-labs orval < 8.21.0
Original advisory text
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL templ...
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, react-query, and SWR clients without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request, URL-builder, or query-key function is called, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/route.ts and route generation consumers. This issue is fixed in version 8.21.0.
Severity
9.3 Critical
Exploitation
EPSS <1%
Type
CWE-94Code Injection
CWE-116
CWE-1336
Timeline
Published19 Aug 2026
Updated22 Aug 2026
First seen19 Aug 2026
Sources
CVE-2026-62681 · MITRE
Monitor software like this
Free during beta