CVE-2026-71866
Received Received - Intake

Double Quote in Schema Property Name Leads to Code Execution in Orval

Vulnerability report for CVE-2026-71866, 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. 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.

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 (inc)
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-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
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's zod client affecting versions 8.19.0 to 8.21.0. It occurs when double quotes in schema property names are not properly escaped during code generation, allowing attackers to inject malicious JavaScript that executes when the generated module is imported.

Detection Guidance

Check if your system uses orval versions 8.19.0 or below by running: npm list orval. Inspect generated zod client files for unescaped double quotes in property names, particularly in packages/zod/src/index.ts. Look for suspicious imports or module files containing computed property keys with JavaScript execution patterns.

Impact Analysis

If you use orval to generate clients from OpenAPI/Swagger specs, an attacker could craft a spec with malicious property names. When you import the generated client, the injected code executes, potentially compromising your development, CI, test, or application environment.

Compliance Impact

This vulnerability could lead to unauthorized code execution, potentially violating data integrity and confidentiality requirements under GDPR and HIPAA. Compromised systems may expose sensitive data, leading to compliance breaches.

Mitigation Strategies

Upgrade orval to version 8.21.0 or later using: npm update orval. If upgrading is not possible, avoid using untrusted OpenAPI/Swagger specifications. Review generated client files for signs of tampering and regenerate clients from trusted specifications only.

Chat Assistant

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

EPSS Chart