Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-25141

Orval has a code injection via unsanitized x-enum-descriptions uing JS comments
Back to all
CVE

CVE-2026-25141

Orval has a code injection via unsanitized x-enum-descriptions uing JS comments

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.3
-
4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25141.json, https://github.com/orval-labs/orval/blob/02211fc413524be340ba9ace866a2ef68845ca7c/packages/core/src/utils/string.ts#L227, https://github.com/orval-labs/orval/releases/tag/v7.21.0, https://github.com/orval-labs/orval/releases/tag/v8.2.0, https://github.com/orval-labs/orval/security/advisories/GHSA-gch2-phqh-fg9q, https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv, https://nvd.nist.gov/vuln/detail/CVE-2026-25141

Severity

0

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
0
EPSS Probability
0.00021%
EPSS Percentile
0.05407%
Introduced Version
eefd96fa12a6a95a5b99d1b6646d4cd06729d0e4,42232d022a665c00d6d551192cbd14423292372e
Fix Available
a28fe2e1844ea55912a11b15c8e9eed040139280,e5cb32dd2c7a4a3ac33e7ea8d7d7223f06a843b0

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading