Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-71866: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-71866cvecve-2026-71866cwe-89cwe-95
Published: 08/19/2026 (08/19/2026, 17:27:28 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

Affected versions
>=8.19.0 <8.21.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 17:53:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses