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

CVE-2026-72716: Orval: Import-time RCE via query-parameter default -> zod module-level template literal

September 2, 2026

Orval’s zod schema generation emits the query-parameter default value as a module-level template literal (export const …Default = ;) without escaping ${ or the backtick. A default of the form v${<code>}w injects a live JavaScript expression evaluated when the generated zod schema module is imported, executing attacker-controlled code at import — no request or function call needed. Verified on Orval 8.19.0; survives default OpenAPI validation.

References

  • github.com/advisories/GHSA-p4cg-3328-rvfg
  • 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-p4cg-3328-rvfg
  • nvd.nist.gov/vuln/detail/CVE-2026-72716

Code Behaviors & Features

Detect and mitigate CVE-2026-72716 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-1336: Improper Neutralization of Special Elements Used in a Template Engine

Source file

npm/orval/CVE-2026-72716.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 12 Sep 2026 00:21:02 +0000.