Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2026-71865: Orval generates malicious JavaScript code in TypeScript clients
CVE-2026-71865 · published 4 days ago
Summary
A security issue in Orval allows attackers to inject malicious JavaScript code when using certain query parameters. This can lead to code execution in the developer, CI, or application environment. To fix this issue, update to Orval version 8.21.0 or later.
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
| Vendor | Product | Affected 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. Prior to 8.21.0, a double quote in a query parameter name is emitted into the generated req...
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.
References
- https://github.com/orval-labs/orval/security/advisories/GHSA-653q-5476-x79g x_refsource_CONFIRM
- https://github.com/orval-labs/orval/pull/3692 x_refsource_MISC
- https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159... x_refsource_MISC
- https://github.com/orval-labs/orval/releases/tag/v8.21.0 x_refsource_MISC
Severity
9.3
Critical
Exploitation
EPSS <1%
Type
CWE-94Code Injection
CWE-95
CWE-116
Timeline
Published19 Aug 2026
Updated22 Aug 2026
First seen19 Aug 2026
Monitor software like this
Free during beta