CVE-2026-62681: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
CVE-2026-62681 is a critical code injection vulnerability in orval-labs orval prior to version 8.21.0. The issue arises because unescaped backticks in OpenAPI paths are directly emitted into JavaScript template literals used for request URL generation, allowing attacker-controlled JavaScript to be executed in developer or application environments. This vulnerability affects the code responsible for route generation and is fixed in version 8.21.0.
AI Analysis
Technical Summary
Orval is a tool that generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Before version 8.21.0, an unescaped backtick character in an OpenAPI path is injected into URL template literals without proper encoding. This flaw exists in packages/core/src/getters/route.ts and related route generation code. It enables an attacker to inject and execute arbitrary JavaScript code when the generated request, URL-builder, or query-key functions are invoked, leading to code execution in environments such as developer machines, continuous integration pipelines, test environments, or applications using the generated clients. The vulnerability is identified as CWE-94 (Improper Control of Generation of Code) and related weaknesses CWE-116 and CWE-1336. The issue is resolved in orval version 8.21.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the developer, CI, test, or application environment where the generated client code runs. This can lead to compromise of these environments, potentially affecting code integrity, confidentiality, and availability. The vulnerability has a CVSS 4.0 base score of 9.3 (critical), indicating high impact with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed by properly escaping backticks in OpenAPI paths before generating URL template literals. No other official remediation or temporary fixes are indicated. Users should verify they are not using affected versions prior to 8.21.0.
CVE-2026-62681: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
Description
CVE-2026-62681 is a critical code injection vulnerability in orval-labs orval prior to version 8.21.0. The issue arises because unescaped backticks in OpenAPI paths are directly emitted into JavaScript template literals used for request URL generation, allowing attacker-controlled JavaScript to be executed in developer or application environments. This vulnerability affects the code responsible for route generation and is fixed in version 8.21.0.
CVSS v4.0
Score 9.3critical
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval is a tool that generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Before version 8.21.0, an unescaped backtick character in an OpenAPI path is injected into URL template literals without proper encoding. This flaw exists in packages/core/src/getters/route.ts and related route generation code. It enables an attacker to inject and execute arbitrary JavaScript code when the generated request, URL-builder, or query-key functions are invoked, leading to code execution in environments such as developer machines, continuous integration pipelines, test environments, or applications using the generated clients. The vulnerability is identified as CWE-94 (Improper Control of Generation of Code) and related weaknesses CWE-116 and CWE-1336. The issue is resolved in orval version 8.21.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the developer, CI, test, or application environment where the generated client code runs. This can lead to compromise of these environments, potentially affecting code integrity, confidentiality, and availability. The vulnerability has a CVSS 4.0 base score of 9.3 (critical), indicating high impact with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed by properly escaping backticks in OpenAPI paths before generating URL template literals. No other official remediation or temporary fixes are indicated. Users should verify they are not using affected versions prior to 8.21.0.
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
- Remediation Level
- null
Threat ID: 6a85eb30acd9273b49667222
Added to database: 08/19/2026, 17:43:12 UTC
Last enriched: 08/19/2026, 17:54:20 UTC
Last updated: 08/19/2026, 17:54:20 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.