CVE-2026-23947 Details
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.
A vulnerability allowing arbitrary code execution has been identified in the Orval code generation library, specifically in versions 7.10.0 prior to 8.0.2. This issue arises in environments that use clients generated by Orval from untrusted OpenAPI specifications. The vulnerability is rooted in the @orval/core package, where the x-enumDescriptions field is processed without adequate escaping, allowing the injection of executable TypeScript or JavaScript code. This injected code is executed during the generation of constant enums, leading to the execution of arbitrary code within the generated schema files.
Users are advised to upgrade to Orval version 8.0.2, which addresses this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/orval-labs/orval/releases/tag/v8.0.2 | [email protected] | ProductRelease Notes |
| https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| orval orval | < 7.19.0 >= 8.0.0, < 8.0.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 27, 2026 | Initial Analysis | [email protected] |
| Jan 21, 2026 | CVE Modified | [email protected] |
| Jan 20, 2026 | CVE Modified | [email protected] |
| Jan 20, 2026 | New CVE Received | [email protected] |