9.3
/ 10
CRITICAL
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
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.
AI Analysis
Code injection vulnerability in orval MCP client
Basic Information
ID
CVE-2026-22785
Source
GitHub_M
Published
Jan 12, 2026 at 18:43
Modified
Jan 12, 2026 at 18:56
Affected Product
Vendor
orval-labs
Product
orval
Version
< 7.18.0
Affected Versions
orval-labs orval < 7.18.0
CWE Classification
AI Assessment
AI Score
9.3 / 10
AI Severity
Critical
Vendor
orval-labs
Product
orval
Version
< 7.18.0