CVE-2026-71865
Received Received - Intake

Double Quote Injection in Orval Generates Code Execution

Vulnerability report for CVE-2026-71865, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-19

Last updated on: 2026-08-19

Assigner: GitHub, Inc.

Description

Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a double quote in a query parameter name is emitted into the generated request-validation 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 query request-validation generation. This issue is fixed in version 8.21.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-19
Last Modified
2026-08-19
Generated
2026-08-19
AI Q&A
2026-08-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
orval orval 8.21.0
orval-labs orval to 8.21.0 (exc)
orval-labs orval 8.21.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-116 The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-71865 is a Remote Code Execution (RCE) vulnerability in the orval library affecting the Zod client. It occurs when generating a Zod validation schema from OpenAPI specifications. The issue is that query parameter names are emitted as double-quoted keys without proper escaping. An attacker can inject a double quote into a query parameter name, closing the key context and allowing JavaScript code injection. This injected code executes when the Zod schema is imported, leading to arbitrary code execution.

Detection Guidance

Check if your system uses orval versions 8.19.0 or below by running: npm list orval. Inspect generated Zod schemas for query parameter names containing double quotes in packages/zod/src/index.ts.

Impact Analysis

This vulnerability allows attackers to execute arbitrary code on your system if you import a generated orval Zod client from an attacker-controlled OpenAPI specification. The attack happens at module import time, meaning no user interaction or elevated privileges are required. It could compromise your development, CI, test, or application environments, potentially leading to data theft, system damage, or further network infiltration.

Compliance Impact

This vulnerability could lead to severe compliance violations under GDPR and HIPAA due to potential unauthorized data access or exfiltration. GDPR requires protecting personal data, and HIPAA mandates safeguarding protected health information. A successful exploit could result in data breaches, triggering mandatory breach notifications and significant fines. Organizations using vulnerable orval versions may face compliance failures and legal liabilities.

Mitigation Strategies

Upgrade orval to version 8.21.0 or later using: npm update orval. Regenerate all Zod schemas from OpenAPI/Swagger specs to ensure proper escaping of query parameters.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-71865. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart