CVE-2026-62682
Received Received - Intake

Orval JavaScript Client Code Execution via Unescaped Backtick

Vulnerability report for CVE-2026-62682, 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 servers[0].url is emitted into request URL template literals generated when output.baseUrl.getBaseUrlFromSpecification is enabled without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request or URL-builder 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 function getFullRoute. 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.19.0 (exc)
orval_labs orval 8.21.0

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 is a Remote Code Execution (RCE) vulnerability in the Orval library affecting versions prior to 8.21.0. When the output.baseUrl.getBaseUrlFromSpecification option is enabled, the library embeds the OpenAPI specification's servers[].url value directly into generated request URLs as a template literal without proper escaping. If the URL contains a backtick character, it prematurely closes the template literal and injects attacker-controlled JavaScript code that executes when the generated URL or request function is called.

Detection Guidance

Check if your Orval version is below 8.21.0 by running: npm list orval or yarn list orval. Inspect OpenAPI specifications for backticks in servers[0].url fields. Review generated client code for unescaped backticks in URL templates.

Impact Analysis

This vulnerability allows arbitrary code execution in any environment using a client generated from a malicious or compromised OpenAPI specification. This includes developer machines, CI systems, test environments, or application environments where the generated client is used.

Compliance Impact

This vulnerability could lead to arbitrary code execution in environments using generated clients from malicious OpenAPI specifications. For GDPR, this may result in unauthorized data access or processing, violating principles of data protection and user rights. Under HIPAA, it could enable unauthorized access to protected health information, compromising confidentiality and integrity requirements.

Mitigation Strategies

Upgrade Orval to version 8.21.0 or later immediately. Disable output.baseUrl.getBaseUrlFromSpecification if not required. Sanitize OpenAPI specifications to remove backticks from server URLs before processing.

Chat Assistant

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

EPSS Chart