CVE-2026-96759

orval before 8.29.0 Code Injection via operationId

Published Sep 23, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

orval fails to escape the operationId field when generating metadata for TanStack Query mutator options. This flaw allows an attacker to embed arbitrary JavaScript within an OpenAPI specification so that the injected code executes whenever the generated hooks are invoked. The result is that malicious script runs in the user’s browser context, providing attackers with the full capabilities of a client‑side RCE.

Affected Systems

The vulnerability affects the orval package from orval‑labs, specifically any version prior to 8.29.0. Users who generate TanStack Query hooks from OpenAPI files with untrusted operationId values are at risk.

Risk and Exploitability

The CVSS score of 9.3 indicates high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed widespread exploitation yet. The attack vector is inferred to be the inclusion of a malicious operationId in an OpenAPI specification that an organization trusts and feeds to orval during code generation. If the specification is used in production code, the injected script could execute in the users’ browsers, potentially compromising data, session tokens, or allowing further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade orval to version 8.29.0 or later so the operationId is properly escaped.
  • Before upgrading, sanitize or remove any custom operationId values from the OpenAPI specification to eliminate the injected code.
  • Perform a code review or automated scan of OpenAPI files to ensure operationId fields contain only trusted, non‑executable content.

Generated by OpenCVE AI on September 23, 2026 at 17:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Orval-labs
Orval-labs orval
Vendors & Products Orval-labs
Orval-labs orval
Type Values Removed Values Added
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.
Title orval before 8.29.0 Code Injection via operationId
First Time appeared Orval
Orval orval
Weaknesses CWE-94
CPEs cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:*
Vendors & Products Orval
Orval orval
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': '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'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 29, 2026, 2:01 AM
Reserved
Sep 23, 2026, 3:58 PM
Status
Deferred
Published
Sep 23, 2026, 5:17 PM
Modified
Sep 29, 2026, 2:16 AM