RCE in Orval
CVE-2026-23947
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.008 (56.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 56th percentile — 56.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.008 · change: +0.001
Affected products
- Orval
- Orval-Labs Orval — versions >= 8.0.0-rc.0, < 8.0.2, < 7.19.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv (Vendor Advisory)
- github.com/orval-labs/orval/releases/tag/v8.0.2 (Product, Release Notes)
Frequently asked questions
- What is CVE-2026-23947?
- CVE-2026-23947 is a critical-severity vulnerability in Orval, classified under Command Injection. CVSS score: 9.8/10. Published 2026-01-20.
- How severe is CVE-2026-23947?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2026-23947 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.