Critical severity · published Jan 12, 2026
CVE-2026-22785
orval MCP client is vulnerable to a code injection attack.
9.8
CVSS
0.8%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 56% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OR
orval · orval-labs
< 7.18.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-22785
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-22785
Patch
https://github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928d
Exploit
https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmj
More from orval
9.8
CVE-2026-96759
orval before 8.29.0 Code Injection via operationId
9.8
CVE-2026-96758
orval @orval/core before 8.28.0 Code Injection via Form-Data
9.8
CVE-2026-96757
orval before 8.29.0 Code Injection via unescaped OpenAPI media-type
9.8
CVE-2026-96755
orval @orval/effect 8.14.0 through 8.28.1 Code Injection
9.8
CVE-2026-96754
orval @orval/hono before 8.29.0 Code Injection via OpenAPI Path
