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-71871: CWE-94: Improper Control of Generation of Code ('Code Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-71871cvecve-2026-71871cwe-94cwe-116cwe-1336
Published: 08/19/2026 (08/19/2026, 17:33:56 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: orval

Description

CVE-2026-71871 is a critical code injection vulnerability in orval-labs' orval tool prior to version 8.21.0. The issue arises from unsafe encoding of ${...} expressions or backticks in header parameter defaults, which are emitted into module-level template literals during zod schema generation. This flaw allows attacker-controlled JavaScript to be executed when the generated zod schema module is imported, potentially leading to code execution in developer, CI, test, or application environments. The vulnerability is fixed in orval 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.21.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 17:52:46 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 function formatDefaultValue in packages/zod/src/index.ts improperly handles ${...} expressions or backticks in header parameter defaults by embedding them directly into module-level template literals without safe encoding. This improper control of code generation (CWE-94) permits injection and execution of attacker-controlled JavaScript code when the generated zod schema module is imported. This vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. The issue is resolved in version 8.21.0 of orval.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the developer, continuous integration, testing, or application environment where the generated zod schema module is imported. This can lead to full code execution, potentially compromising the affected environment.

Mitigation Recommendations

Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor stating the issue is resolved in 8.21.0. No other mitigation is indicated.

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: 6a85eb31acd9273b49667250

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

Last enriched: 08/19/2026, 17:52:46 UTC

Last updated: 08/19/2026, 22:12:03 UTC

Views: 6

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