Description
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. From version 8.19.0 until 8.21.0, a double quote in a schema property name is emitted into the generated zod.object({...}) schema without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/zod/src/index.ts and zod object-key generation. This issue is fixed in version 8.21.0.
Published: 2026-08-19
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Orval’s code generator, between versions 8.19.0 and 8.21.0, emits a double quote from an OpenAPI property name directly into the generated zod.object({...}) schema without escaping. When a developer, CI pipeline, or application imports the resulting Zod schema module, the unescaped string is evaluated as JavaScript code, giving an attacker the ability to execute arbitrary code in the import context. This flaw is a code‑injection weakness (CWE‑95) that triggers during module import.

Affected Systems

The vulnerability affects projects that use orval‑labs:orval to generate Zod clients between the versions 8.19.0 and 8.21.0. Any environment that imports the generated schema—development machines, continuous‑integration servers, test harnesses, or running applications—can be compromised. The issue is fixed in orval v8.21.0 and later releases.

Risk and Exploitability

The CVSS score of 9.3 denotes critical severity. No EPSS score is reported, and the vulnerability is not listed in the CISA KEV catalog, but the lack of a publicly disclosed exploit does not lessen the inherent risk. An attacker only needs to supply a malicious OpenAPI specification that includes a double quote in a property name; once that specification is processed by the vulnerable version, the resulting client module can be imported somewhere in the attacker’s control, causing code execution with the privileges of the importing process.

Generated by OpenCVE AI on August 20, 2026 at 13:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade orval to version 8.21.0 or newer to eliminate the unsafe string handling.
  • Re‑generate all client modules with the updated orval version to replace code that was emitted with unescaped property names.
  • Audit the codebase and dependency tree to ensure no older, vulnerable client modules remain; remove or migrate them before deployment.

Generated by OpenCVE AI on August 20, 2026 at 13:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6mr6-jvcr-2f25 Orval: Import-time RCE via schema property name -> computed-property-key injection in the zod client
History

Thu, 20 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 19 Aug 2026 18:45:00 +0000

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

Wed, 19 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
Description Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. From version 8.19.0 until 8.21.0, a double quote in a schema property name is emitted into the generated zod.object({...}) schema without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/zod/src/index.ts and zod object-key generation. This issue is fixed in version 8.21.0.
Title Orval: Import-time RCE via schema property name -> computed-property-key injection in the zod client
Weaknesses CWE-89
CWE-95
References
Metrics 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'}


Subscriptions

Orval-labs Orval
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T18:03:13.730Z

Reserved: 2026-08-07T18:26:53.524Z

Link: CVE-2026-71866

cve-icon Vulnrichment

Updated: 2026-08-19T18:02:13.146Z

cve-icon NVD

Status : Deferred

Published: 2026-08-19T18:17:23.583

Modified: 2026-09-09T21:20:38.860

Link: CVE-2026-71866

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T13:30:17Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')