Skip to content
OpenAdvisories
Critical · 9.3 Public exploit CVE-2026-22785 EUVD-2026-2002GHSA-mwr6-3gp8-9jmj

orval MCP client is vulnerable to a code injection attack.

Published Jan 12, 2026 · Updated Jan 12, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
orval-labs orval < 7.18.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • langbyyi/CVE-2026-22785 ★ 1 · Jan 17, 2026

    orval < 7.18.0 MCP 服务器代码注入(CVSS 9.3)复现与利用工具

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @orval/mcp < 7.18.0 7.18.0 GHSA-mwr6-3gp8-9jmj

References