CVE-2026-71865: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
Description
CVE-2026-71865 is a critical code injection vulnerability in orval-labs' orval tool that generates type-safe JavaScript clients from OpenAPI and Swagger specifications. Versions prior to 8.21.0 improperly handle double quotes in query parameter names, embedding them unsafely into generated zod validation schemas. This flaw allows attacker-controlled JavaScript to be executed when the generated schema module is imported, leading to code execution in developer, CI, test, or application environments. The issue is fixed in version 8.21.0.
CVSS v4.0
Score 9.3critical
Affected software
orval-labs
orval
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval versions before 8.21.0 contain a code injection vulnerability (CWE-94) due to unsafe inclusion of double quotes in query parameter names within generated zod.object schemas. This unsafe encoding permits execution of attacker-supplied JavaScript code upon import of the generated validation schema module. The affected code resides in packages/zod/src/index.ts and the query request-validation generation logic. The vulnerability is resolved in version 8.21.0.
Potential Impact
An attacker can inject malicious JavaScript code into the generated validation schema by manipulating query parameter names containing double quotes. This code executes in the context of the developer's environment, continuous integration pipelines, testing frameworks, or applications that import the generated schema module. This leads to arbitrary code execution with potentially severe consequences such as compromise of development or deployment environments.
Mitigation Recommendations
Upgrade orval to version 8.21.0 or later where this vulnerability is fixed. No other mitigation is required as the issue is resolved by this official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-07T18:26:53.524Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a85eb30acd9273b49667228
Added to database: 08/19/2026, 17:43:12 UTC
Last enriched: 09/11/2026, 07:31:49 UTC
Last updated: 10/04/2026, 09:46:26 UTC
Views: 51
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.