CVE-2026-71871: Orval: Import-time RCE via header-parameter default -> zod module-level template literal
Orval’s zod schema generation emits the header-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-8j6p-r8jg-mxqh
- 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-8j6p-r8jg-mxqh
- nvd.nist.gov/vuln/detail/CVE-2026-71871
Code Behaviors & Features
Detect and mitigate CVE-2026-71871 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →