Skip to main content

CVE-2026-96759: Improper Control of Generation of Code ('Code Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-96759cvecve-2026-96759
Published: 09/23/2026 (09/23/2026, 16:23:58 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

orval-labs

orval

Affected versions
>=0 <8.29.0
GitHub Actionsmore threats →ai
orval-labs/orval
pkg:github/orval-labs/orval
Affected versions
>=0 <8.29.0

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

AILast updated: 09/23/2026, 17:02:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses