CVE-2026-96759: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
orval before 8.29.0 fails to escape the operationId parameter when emitting it into generated TanStack Query mutator options metadata objects. Attackers can inject arbitrary JavaScript code through a crafted operationId in an OpenAPI specification that executes when generated hooks are called.
AI Analysis
Technical Summary
The vulnerability in orval prior to version 8.29.0 involves improper control of code generation. Specifically, the operationId parameter is emitted without escaping into the generated TanStack Query mutator options metadata objects. An attacker can craft an OpenAPI specification with a malicious operationId that injects arbitrary JavaScript code. This code executes when the generated hooks from orval are invoked, leading to potential remote code execution or other malicious behaviors.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the application using orval-generated hooks. This can lead to severe consequences such as remote code execution, data manipulation, or compromise of application integrity. The CVSS 4.0 score of 9.3 reflects the critical nature of this vulnerability with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in orval version 8.29.0. Users should upgrade to version 8.29.0 or later to remediate this vulnerability. Until then, avoid using untrusted OpenAPI specifications with orval-generated hooks. Patch status is confirmed by the versioning information indicating the vulnerability affects versions before 8.29.0.
CVE-2026-96759: Improper Control of Generation of Code ('Code Injection') in orval-labs orval
Description
orval before 8.29.0 fails to escape the operationId parameter when emitting it into generated TanStack Query mutator options metadata objects. Attackers can inject arbitrary JavaScript code through a crafted operationId in an OpenAPI specification that executes when generated hooks are called.
CVSS v4.0
Score 9.3critical
Affected software
orval-labs
orval
pkg:github/orval-labs/orvalRun 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
The vulnerability in orval prior to version 8.29.0 involves improper control of code generation. Specifically, the operationId parameter is emitted without escaping into the generated TanStack Query mutator options metadata objects. An attacker can craft an OpenAPI specification with a malicious operationId that injects arbitrary JavaScript code. This code executes when the generated hooks from orval are invoked, leading to potential remote code execution or other malicious behaviors.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the application using orval-generated hooks. This can lead to severe consequences such as remote code execution, data manipulation, or compromise of application integrity. The CVSS 4.0 score of 9.3 reflects the critical nature of this vulnerability with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in orval version 8.29.0. Users should upgrade to version 8.29.0 or later to remediate this vulnerability. Until then, avoid using untrusted OpenAPI specifications with orval-generated hooks. Patch status is confirmed by the versioning information indicating the vulnerability affects versions before 8.29.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-23T15:58:31.829Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab402dcf7a7c541060ee0de
Added to database: 09/23/2026, 16:48:28 UTC
Last enriched: 09/23/2026, 17:02:45 UTC
Last updated: 09/24/2026, 01:57:04 UTC
Views: 12
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.