CVE-2026-71869: Orval - Server-Side Template Injection
- Cve: CVE-2026-71869
- Name: Orval - Server-Side Template Injection
- Description: Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a ${...} expression or backtick in an array item default is emitted into a module-level template literal emitted by zod schema generation without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/zod/src/index.ts function formatDefaultValue. This issue is fixed in version 8.21.0.
- Impact: Attackers can execute arbitrary JavaScript code in developer, CI, test, or application environments, potentially leading to full code execution.
- Remediation: Upgrade to version 8.21.0 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirements: Attacker needs to have control over the generated zod schema module import
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.3
- Cvss vector: 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Epss score: 0.00653
- Epss percentile: 0.52238
- Assignee: [email protected]
- Published at: 2026-08-19T18:17:24Z
- Age in days: 97
- Modified at: 2026-09-09T21:20:38Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-71869
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| orval:orval | < 8.21.0 | no | cna_alias_text | /v1/products/orval/orval |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| orval-labs/orval | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/orval-labs/orval |
Index
- Repositories: 2
- Repositories high signal: 2
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts