CVE-2026-72717: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
CVE-2026-72717 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 ${...} expressions or backticks in schema defaults, allowing attacker-controlled JavaScript to be executed when the generated zod schema module is imported. This can lead to code execution in developer, CI, test, or application environments. The issue is fixed in version 8.21.0.
AI Analysis
Technical Summary
Orval versions before 8.21.0 contain a code injection vulnerability (CWE-94) in the formatDefaultValue function within packages/zod/src/index.ts. The vulnerability arises because ${...} expressions or backticks in schema default values are emitted into module-level template literals without safe encoding, enabling arbitrary JavaScript execution upon import of the generated zod schema module. This flaw allows an attacker to execute code in environments where the module is used, including development and CI pipelines. The vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. The issue is resolved in version 8.21.0.
Potential Impact
Successful exploitation results in arbitrary code execution in the developer, continuous integration, test, or application environments where the vulnerable orval-generated zod schema module is imported. This can compromise the integrity and security of these environments, potentially leading to unauthorized actions or data compromise.
Mitigation Recommendations
Upgrade to orval version 8.21.0 or later, where this vulnerability is fixed. No other mitigation is required as the fix addresses the unsafe code generation directly.
CVE-2026-72717: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
Description
CVE-2026-72717 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 ${...} expressions or backticks in schema defaults, allowing attacker-controlled JavaScript to be executed when the generated zod schema module is imported. This can lead 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
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval versions before 8.21.0 contain a code injection vulnerability (CWE-94) in the formatDefaultValue function within packages/zod/src/index.ts. The vulnerability arises because ${...} expressions or backticks in schema default values are emitted into module-level template literals without safe encoding, enabling arbitrary JavaScript execution upon import of the generated zod schema module. This flaw allows an attacker to execute code in environments where the module is used, including development and CI pipelines. The vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. The issue is resolved in version 8.21.0.
Potential Impact
Successful exploitation results in arbitrary code execution in the developer, continuous integration, test, or application environments where the vulnerable orval-generated zod schema module is imported. This can compromise the integrity and security of these environments, potentially leading to unauthorized actions or data compromise.
Mitigation Recommendations
Upgrade to orval version 8.21.0 or later, where this vulnerability is fixed. No other mitigation is required as the fix addresses the unsafe code generation directly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-10T13:48:09.545Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a85f0f8acd9273b496dcaf0
Added to database: 08/19/2026, 18:07:52 UTC
Last enriched: 09/11/2026, 07:17:06 UTC
Last updated: 10/02/2026, 14:46:10 UTC
Views: 64
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.