CVE-2026-62681
Received Received - Intake

Orval Path Backtick Injection Leads to JavaScript Code Execution

Vulnerability report for CVE-2026-62681, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-19

Last updated on: 2026-08-19

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-19
Last Modified
2026-08-19
Generated
2026-08-19
AI Q&A
2026-08-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
orval orval 8.21.0
orval-labs orval to 8.21.0 (exc)
orval-labs orval to 8.19.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-116 The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Orval, a tool that generates JavaScript clients from OpenAPI specifications. Prior to version 8.21.0, unescaped backticks in OpenAPI paths were emitted into generated request URL template literals without safe encoding. This allows attacker-controlled JavaScript to be evaluated when generated functions are called, leading to code execution in the developer, CI, test, or application environment.

Detection Guidance

This vulnerability is specific to code generated by Orval versions prior to 8.21.0. To detect it, check the version of Orval in your project's package.json or node_modules. If using Orval to generate API clients, inspect the generated code for unescaped backticks in URL template literals or request functions. Look for paths containing backticks in OpenAPI specifications used by Orval.

Impact Analysis

If you use Orval to generate clients from OpenAPI specs, an attacker could craft a malicious spec with a backtick in the path. When you or your tools call the generated client functions, arbitrary code could execute in your environment. This could compromise your system, steal data, or disrupt operations.

Compliance Impact

This vulnerability could lead to unauthorized code execution, potentially violating data confidentiality and integrity requirements under GDPR and HIPAA. If exploited, it may result in data breaches, unauthorized access, or data tampering, which are non-compliant with these regulations.

Mitigation Strategies

Immediately upgrade Orval to version 8.21.0 or later. Update your OpenAPI specifications to remove any backticks or malicious template expressions in paths. Regenerate all API clients using the patched version. Review generated code for signs of injection before deployment.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-62681. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart