CVE-2026-71869: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
Description
CVE-2026-71869 is a critical code injection vulnerability in orval-labs' orval software prior to version 8.21.0. The issue arises from unsafe encoding of ${...} expressions or backticks in array item defaults during zod schema generation, allowing attacker-controlled JavaScript to be executed when the generated module is imported. This can lead to code execution in developer, CI, test, or application environments. The vulnerability is fixed in version 8.21.0.
CVSS v4.0
Score 9.3critical
Affected software
orval-labs
orval
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval is a tool that generates type-safe JavaScript clients from OpenAPI and Swagger specifications. In versions before 8.21.0, the function formatDefaultValue in packages/zod/src/index.ts improperly handles ${...} expressions or backticks in array item defaults by emitting them into module-level template literals without safe encoding. This flaw permits injection and evaluation of arbitrary JavaScript code when the generated zod schema module is imported, resulting in remote code execution in environments where the module is used. The vulnerability is tracked as CWE-94 (Improper Control of Generation of Code).
Potential Impact
An attacker can inject and execute arbitrary JavaScript code in the context of the developer, continuous integration, testing, or application environment by exploiting this vulnerability. This can lead to full code execution, potentially compromising the affected systems or workflows that use orval-generated modules.
Mitigation Recommendations
This vulnerability is fixed in orval version 8.21.0. Users should upgrade to version 8.21.0 or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
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: 6a85eb30acd9273b49667230
Added to database: 08/19/2026, 17:43:12 UTC
Last enriched: 09/11/2026, 07:17:35 UTC
Last updated: 10/04/2026, 10:02:29 UTC
Views: 44
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.