CVE-2026-71866: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in orval-labs orval
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.
AI Analysis
Technical Summary
Orval, a tool generating type-safe JavaScript clients from OpenAPI and Swagger specifications, improperly handles double quotes in schema property names in versions 8.19.0 through 8.20.x. This improper neutralization results in unsafe emission of attacker-controlled JavaScript code in the generated zod.object schema, specifically in packages/zod/src/index.ts and the object-key generation logic. When the generated schema module is imported, this can lead to arbitrary code execution. The vulnerability is identified as CWE-89 (SQL Injection) and CWE-95 (Improper Neutralization of Directives), with a CVSS 4.0 score of 9.3 (critical). The vulnerability is fixed in version 8.21.0.
Potential Impact
An attacker can inject malicious JavaScript code via specially crafted schema property names containing double quotes. This code executes in the context of the developer, continuous integration, testing, or application environment when the generated zod schema module is imported. This can lead to arbitrary code execution, potentially compromising the affected environment.
Mitigation Recommendations
Upgrade Orval to version 8.21.0 or later, where this vulnerability is fixed. There is no official patch or temporary fix other than upgrading. Until upgraded, avoid importing generated zod schema modules from untrusted or attacker-controlled OpenAPI/Swagger specifications.
CVE-2026-71866: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in orval-labs orval
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 v4.0
Score 9.3critical
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval, a tool generating type-safe JavaScript clients from OpenAPI and Swagger specifications, improperly handles double quotes in schema property names in versions 8.19.0 through 8.20.x. This improper neutralization results in unsafe emission of attacker-controlled JavaScript code in the generated zod.object schema, specifically in packages/zod/src/index.ts and the object-key generation logic. When the generated schema module is imported, this can lead to arbitrary code execution. The vulnerability is identified as CWE-89 (SQL Injection) and CWE-95 (Improper Neutralization of Directives), with a CVSS 4.0 score of 9.3 (critical). The vulnerability is fixed in version 8.21.0.
Potential Impact
An attacker can inject malicious JavaScript code via specially crafted schema property names containing double quotes. This code executes in the context of the developer, continuous integration, testing, or application environment when the generated zod schema module is imported. This can lead to arbitrary code execution, potentially compromising the affected environment.
Mitigation Recommendations
Upgrade Orval to version 8.21.0 or later, where this vulnerability is fixed. There is no official patch or temporary fix other than upgrading. Until upgraded, avoid importing generated zod schema modules from untrusted or attacker-controlled OpenAPI/Swagger specifications.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-07T18:26:53.524Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85eb30acd9273b4966722a
Added to database: 08/19/2026, 17:43:12 UTC
Last enriched: 08/19/2026, 17:53:36 UTC
Last updated: 08/19/2026, 22:38:19 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.