CVE-2026-23947: Orval - Remote Code Execution
- Cve: CVE-2026-23947
- Name: Orval - Remote Code Execution
- Description: Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions prior to 7.19.0 until 8.0.2 are vulnerable to arbitrary code execution in environments consuming generated clients. This issue is similar in nature to CVE-2026-22785, but affects a different code path in @orval/core that was not addressed by CVE-2026-22785's fix. The vulnerability allows untrusted OpenAPI specifications to inject arbitrary TypeScript/JavaScript code into generated clients via the x-enumDescriptions field, which is embedded without proper escaping in getEnumImplementation(). I have confirmed that the injection occurs during const enum generation and results in executable code within the generated schema files. Orval 7.19.0 and 8.0.2 contain a fix for the issue.
- Impact: Attackers can execute arbitrary code in environments consuming generated clients, potentially leading to full system compromise.
- Remediation: Upgrade to version 8.0.2 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00839
- Epss percentile: 0.58767
- Assignee: [email protected]
- Published at: 2026-01-20T01:15:57Z
- Age in days: 308
- Modified at: 2026-06-17T10:22:19Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-23947
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/boroeurnprach/CVE-2026-23947-PoC | poc-in-github | 2026-01-21 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv | nvd | Vendor Advisory |
| https://github.com/orval-labs/orval/releases/tag/v8.0.2 | nvd | Product, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| orval:orval | >= 8.0.0, < 8.0.2; < 7.19.0 | no | nvd | /v1/products/orval/orval |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| orval-labs/orval | commit, package, releases, security_advisory | yes | /v1/repositories/orval-labs/orval |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-01-21
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts