Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.3

CVE-2026-71866: Orval generates malicious JavaScript code in generated clients

CVE-2026-71866 · published 4 days ago
Summary

Orval, a tool for generating JavaScript clients, had a bug in versions 8.19.0 to 8.21.0. This bug allowed attackers to inject malicious code into generated clients. The issue is fixed in version 8.21.0, so update to this version to protect your applications.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
orval-labs orval < 8.21.0
Original advisory text
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 ...
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.
Severity
9.3 Critical
Exploitation
EPSS <1%
Type
CWE-89SQL Injection
CWE-95
Timeline
Published19 Aug 2026
Updated20 Aug 2026
First seen19 Aug 2026
Sources
CVE-2026-71866 · MITRE
Monitor software like this
Free during beta