RCE in Orval
CVE-2026-22785
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.008, 56.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Orval
- Orval-Labs Orval — versions < 7.18.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- langbyyi/CVE-2026-22785 (1 star, last pushed 2026-01-17): orval < 7.18.0 MCP 服务器代码注入(CVSS 9.3)复现与利用工具
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.