Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. orval
  4. ›
  5. CVE-2026-71866

CVE-2026-71866: Orval: Import-time RCE via schema property name -> computed-property-key injection in the zod client

September 2, 2026

orval’s zod client emits each schema property name as a double-quoted key in the generated zod.object({…}) WITHOUT escaping the double quote. A " in a property name closes the key and lands in object-literal context, where an injected computed property key [expr] is evaluated when zod.object({…}) runs – which is at MODULE IMPORT (the export const X = zod.object({...}) executes on load) -> import-time RCE. The property name is a pure data field. Verified on orval 8.19.0 / Node. CWE-94 / CWE-95 / CWE-116.

References

  • github.com/advisories/GHSA-6mr6-jvcr-2f25
  • github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6
  • github.com/orval-labs/orval/pull/3692
  • github.com/orval-labs/orval/releases/tag/v8.21.0
  • github.com/orval-labs/orval/security/advisories/GHSA-6mr6-jvcr-2f25
  • nvd.nist.gov/vuln/detail/CVE-2026-71866

Code Behaviors & Features

Detect and mitigate CVE-2026-71866 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.21.0

Fixed versions

  • 8.21.0

Solution

Upgrade to version 8.21.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

npm/orval/CVE-2026-71866.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 08 Sep 2026 00:17:38 +0000.