CVE-2026-22785
CRITICALOrval Mcp < 7.18.0 - Command Injection
Title source: ruleDescription
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.
Exploits (1)
Scores
CVSS v3
9.8
EPSS
0.0004
EPSS Percentile
10.5%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-77
Status
published
Products (2)
orval/mcp
0 - 7.18.0npm
orval/orval
< 7.18.0
Published
Jan 12, 2026
Tracked Since
Feb 18, 2026