CVE-2026-23947 json
Orval MCP client is vulnerable to code injection via unsanitized x-enum-descriptions in enum generation
published 2026-01-20 9 mo ago modified 2026-06-17 4 mo ago also GHSA-h526-wf6g-67jv , EUVD-2026-3590
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @orval/core 7.19.0, 8.0.2
- orval orval 7.19.0, 8.0.2
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | 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 |
| CNA | 4.0 | 9.3 | 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 |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @orval/core | >=8.0.0-rc.0, <8.0.2 <7.19.0 |
8.0.2 7.19.0 |
Affected products
- orval-labs orval
Classification
References
-
github.com
/orval-labs/orval/commit/9e5d93533904936678ba93b5d20f6bca176a4e1e
web
-
github.com
/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv
web, vendor-advisory
-
github.com
/orval-labs/orval/releases/tag/v8.0.2
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-23947
advisory
-
github.com
/orval-labs/orval
package
-
github.com
/orval-labs/orval/releases/tag/v7.19.0
web
Sources
- CVE List CVE-2026-23947
- GitHub Advisory GHSA-h526-wf6g-67jv
- NVD CVE-2026-23947
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.