CVE-2026-71866: Orval Package Suffers from Import-Time RCE via Schema Property Name Injection

orval Updated 02 Sep 2026

Summary

02/09/2026
Yes i
Critical
9.3

CVE-2026-71866: Orval: Import-time RCE via schema property name -> computed-property-key injection in the zod client. Affects orval versions < 8.21.0. Fixed in 8.21.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Orval is an open-source tool designed for generating TypeScript clients from OpenAPI specifications. It leverages the Zod library for schema validation, enabling developers to create robust and type-safe API clients. However, a critical vulnerability has been identified in the Zod client of Orval, which can lead to remote code execution (RCE) during module import.

Vulnerability Detail

The vulnerability arises from the way Orval's Zod client generates object schemas. Specifically, it emits schema property names as double-quoted keys without escaping double quotes. This oversight allows an attacker to inject a computed property key into the object literal, which gets evaluated at module import time. As a result, malicious code can be executed when the module is imported, leading to potential JavaScript or OS command execution. This vulnerability has been verified in version 8.19.0 of Orval and is classified under CWE-94 (Improper Control of Generation of Code) and CWE-95 (Improper Neutralization of Special Elements in Output Used by a Downstream Component).

How To Fix

Latest published version: 8.44.0 as of 22 Oct 2026

npm install orval@8.44.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.21.0

This is the first release that contains the fix.

npm install orval@8.21.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using property names that contain double quotes in the schema definitions. Additionally, ensure that any schemas generated from untrusted sources are reviewed and sanitized before use.

Conclusion

The vulnerability CVE-2026-71866 in the Orval package poses a significant risk due to its potential for remote code execution at import time. It is crucial for developers using Orval to update to the patched version 8.21.0 and to implement best practices for schema management to mitigate risks.

See every vulnerability recorded for orval →

Share this vulnerability

FAQ

CVE-2026-71866 is a critical vulnerability in the Orval package that allows for remote code execution during module import due to improper handling of schema property names.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for this vulnerability is 9.3, indicating a critical level of severity.

If an immediate update is not possible, consider implementing the suggested workaround by avoiding property names with double quotes and reviewing schemas from untrusted sources.

You can find more information about Orval and its features on its official GitHub repository or documentation pages.

Related vulnerabilities

Recent vulnerabilities recorded for orval.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 8.44.0 as of 22 Oct 2026

npm install orval@8.44.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.21.0

This is the first release that contains the fix.

npm install orval@8.21.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback