Skip to main content
EPSS 0.7%top 50%

CVE-2026-71864: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-71864cvecve-2026-71864cwe-94cwe-95cwe-116
Published: 08/19/2026 (08/19/2026, 17:34:55 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: orval

Description

CVE-2026-71864 is a critical code injection vulnerability in orval-labs orval prior to version 8.21.0. The issue arises because a double quote in a header parameter name is not safely encoded when generating the request-validation zod schema, allowing attacker-controlled JavaScript code to be executed when the generated module is imported. This can lead to code execution in developer, CI, test, or application environments. The vulnerability 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

orval-labs

orval

Affected versions
<8.21.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 07:31:56 UTC

Technical Analysis

Orval is a tool that generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Before version 8.21.0, the tool improperly handled double quotes in header parameter names by inserting them directly into the generated zod.object schema without safe encoding. This flaw permits injection of malicious JavaScript code that executes upon importing the generated schema module, leading to code execution in environments such as development, continuous integration, testing, or production applications. The vulnerability affects the code in packages/zod/src/index.ts and the header request-validation generation logic. The issue is resolved in version 8.21.0.

Potential Impact

An attacker who can control header parameter names in the OpenAPI or Swagger specification used by orval can inject arbitrary JavaScript code that executes when the generated zod schema module is imported. This results in remote code execution in the developer's or application's environment, potentially compromising the integrity and security of the affected systems. The CVSS 4.0 score is 9.3 (critical), reflecting the high impact and ease of exploitation without privileges or user interaction.

Mitigation Recommendations

Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed. No other mitigation is required as the fix addresses the unsafe encoding of header parameter names in the generated code.

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

Threat ID: 6a85eb30acd9273b49667226

Added to database: 08/19/2026, 17:43:12 UTC

Last enriched: 09/11/2026, 07:31:56 UTC

Last updated: 10/04/2026, 10:02:29 UTC

Views: 52

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