---
id: CVE-2026-96759
title: >-
  orval before 8.29.0 fails to escape the operationId parameter when emitting it
  into generated TanStack Query mutator options metadata objects
summary: >-
  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
  spe…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: orval-labs
product: orval
affected:
  - orval < 8.29.0
published: '2026-09-23'
updated: '2026-09-23'
sourceUpdated: '2026-09-23T18:16:08.337'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-96759'
references:
  - url: 'https://github.com/orval-labs/orval'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/orval-labs/orval/blob/v8.28.1/packages/query/src/query-generator.ts#L784
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/orval-labs/orval/commit/b28c53f3e0c06190e0f6ea136737e6316432448f
    label: disclosure@vulncheck.com
  - url: 'https://github.com/orval-labs/orval/pull/4008'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/orval-labs/orval/security/advisories/GHSA-vv88-cm6j-665j
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/orval-before-8.29.0-code-injection-via-operationid
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-23T17:28:14.858Z'
epss: 0.00426
epssPercentile: 0.34123
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
