CVE-2026-71864
Received Received - Intake

Double Quote in Header Parameter Leading to Code Execution in Orval

Vulnerability report for CVE-2026-71864, 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 header 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 header 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 to 8.21.0 (exc)
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

This is a Remote Code Execution (RCE) vulnerability in the orval library affecting versions 8.19.0 and earlier. It occurs during import time when the generated zod client creates a request-validation schema. Header parameter names are emitted as double-quoted keys without proper escaping, allowing attackers to inject malicious JavaScript code via a double quote in a header name. This injected code executes when the zod.object schema is imported, enabling arbitrary code execution in the developer, CI, test, or application environment.

Detection Guidance

To detect this vulnerability, check if your system uses orval versions 8.19.0 or earlier. Inspect generated client code for improperly escaped header parameter names in the zod.object schema. Look for double quotes in header names that could allow code injection during import.

Impact Analysis

If you use orval to generate a zod client from an attacker-controlled OpenAPI or Swagger specification, importing the generated client could execute malicious JavaScript or OS commands. This affects developers, CI/CD pipelines, test environments, and applications using the generated client, potentially leading to data breaches, system compromise, or service disruption.

Compliance Impact

This vulnerability could lead to unauthorized code execution, potentially exposing sensitive data or systems. For GDPR, it may result in data breaches requiring notification under Article 33. For HIPAA, it could compromise protected health information, violating security rules. Organizations using affected orval versions may face compliance violations, fines, or legal consequences if exploited.

Mitigation Strategies

Upgrade orval to version 8.21.0 or later immediately. Regenerate all clients from OpenAPI/Swagger specs to ensure proper escaping of header parameter names. Review and audit any generated client code for suspicious patterns before deployment.

Chat Assistant

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

EPSS Chart