Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-23947
January 20, 2026
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.
Affected Packages
https://github.com/orval-labs/orval.git (GITHUB):
Affected version(s) >=v7.10.0 <v8.0.2
Fix Suggestion:
Update to version v8.0.2
@orval/core (NPM):
Affected version(s) >=6.11.0-alpha.1 <8.0.2
Fix Suggestion:
Update to version 8.0.2
@orval/core (NPM):
Affected version(s) >=6.11.0-alpha.1 <7.19.0
Fix Suggestion:
Update to version 7.19.0
@orval/core (NPM):
Affected version(s) >=8.0.0-rc.0 <8.0.2
Fix Suggestion:
Update to version 8.0.2
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
POC
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
Improper Neutralization of Special Elements used in a Command ('Command Injection')
EPSS
Base Score:
0.10