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.
Published: 2026-09-23
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution via JavaScript injection
Action: Patch
AI Analysis

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.

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

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 yet.

History

Tue, 29 Sep 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 24 Sep 2026 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Orval-labs
Orval-labs orval
Vendors & Products Orval-labs
Orval-labs orval

Wed, 23 Sep 2026 16:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-29T02:01:12.244Z

Reserved: 2026-09-23T15:58:31.829Z

Link: CVE-2026-96759

cve-icon Vulnrichment

Updated: 2026-09-29T02:01:07.630Z

cve-icon NVD

Status : Deferred

Published: 2026-09-23T17:17:25.250

Modified: 2026-09-29T02:16:56.497

Link: CVE-2026-96759

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-24T02:15:14Z

Weaknesses
  • CWE-94

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