CVE-2026-25141 Details
Description
Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions starting with 7.19.0 and prior to 7.21.0 and 8.2.0 have an incomplete fix for CVE-2026-23947. While the jsStringEscape function properly handles single quotes ('), double quotes (") and so on, it is still possible to achieve code injection using only a limited set of characters that are currently not escaped. The vulnerability lies in the fact that the application can be forced to execute arbitrary JavaScript using characters such as []()!+. By using a technique known as JSFuck, an attacker can bypass the current sanitization logic and run arbitrary code without needing any alphanumeric characters or quotes. Version 7.21.0 and 8.2.0 contain an updated fix.
A code injection vulnerability has been identified in Orval, a tool that generates type-safe JavaScript clients from OpenAPI specifications. This issue affects versions 7.19.0 prior to 7.21.0 and 8.2.0, all of which have an incomplete fix for a previous vulnerability (CVE-2026-23947). The problem arises because the 'jsStringEscape' function, while it correctly escapes single and double quotes, fails to sanitize certain characters such as asterisks and slashes. This oversight allows attackers to manipulate JavaScript comment blocks and execute arbitrary code by exploiting the JSFuck technique, which bypasses the existing sanitization by using a limited set of characters. The vulnerability is present in the '@orval/core' package, specifically during the generation of const enums, where untrusted OpenAPI specifications can inject executable code through the 'x-enumDescriptions' field.
Users can upgrade to Orval versions 7.21.0 or 8.2.0, both of which include the necessary fix.
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 Feb 2, 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| orval orval | >= 7.19.0, < 7.21.0 >= 8.0.0, < 8.2.0 |
CPE
Remediation
| |
Change History
4 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 30, 2026 | New CVE Received | [email protected] |