Skip to main content
EPSS 0.7%top 50%

CVE-2026-62681: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-62681cvecve-2026-62681cwe-94cwe-116cwe-1336
Published: 08/19/2026 (08/19/2026, 17:31:02 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: orval

Description

CVE-2026-62681 is a critical code injection vulnerability in orval versions prior to 8.21.0. The issue arises because unescaped backticks in OpenAPI paths are directly embedded into JavaScript template literals used for generating request URLs in clients like axios, fetch, react-query, and SWR. This flaw allows attacker-controlled JavaScript code to be executed in environments where the generated code runs, such as developer machines, CI pipelines, test environments, or applications. The vulnerability is fixed in version 8.21.0.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

orval-labs

orval

Affected versions
<8.21.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 07:32:03 UTC

Technical Analysis

Orval is a tool that generates type-safe JavaScript clients from OpenAPI and Swagger specifications. Before version 8.21.0, it improperly handles backticks in OpenAPI paths by embedding them unescaped into template literals for URL construction. This improper control of code generation (CWE-94) enables injection and execution of arbitrary JavaScript code when the generated request or query functions are invoked. The affected source code includes packages/core/src/getters/route.ts and related route generation consumers. The vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. The issue is resolved in orval 8.21.0.

Potential Impact

An attacker who can control the OpenAPI path input can inject JavaScript code that will be executed in the context of the developer, CI, test, or application environment where the generated client code runs. This can lead to arbitrary code execution, potentially compromising the environment and any sensitive data or processes running there.

Mitigation Recommendations

Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed. No additional mitigation is required if the upgrade is applied. Patch status is confirmed fixed in 8.21.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-14T20:22:04.395Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a85eb30acd9273b49667222

Added to database: 08/19/2026, 17:43:12 UTC

Last enriched: 09/11/2026, 07:32:03 UTC

Last updated: 10/04/2026, 10:02:28 UTC

Views: 34

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses