Description
orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Prior to 7.18.0, the MCP server generation logic relies on string manipulation that incorporates the summary field from the OpenAPI specification without proper validation or escaping. This allows an attacker to "break out" of the string literal and inject arbitrary code. This vulnerability is fixed in 7.18.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| orval-labs | orval | < 7.18.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
langbyyi/CVE-2026-22785 ★ 1 · Jan 17, 2026
orval < 7.18.0 MCP 服务器代码注入(CVSS 9.3)复现与利用工具
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @orval/mcp | < 7.18.0 | 7.18.0 | GHSA-mwr6-3gp8-9jmj |