CVE-2026-22785CWE-77

orval MCP client is vulnerable to a code injection attack.

Critical · published January 12, 2026

CVSS v4.0
9.3
EPSS
1%
Percentile
55.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
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
EPSS
0.00778 · 55.4th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2026-01-12T18:43Z
EPSS history
Timeline
  • 12 JAN 18:43Z
    orval MCP client is vulnerable to a code injection attack.
    cvelistv5