Skip to main content
← All vulnerabilities
CVE-2026-22785GHSA-MWR6-3GP8-9JMJ

orval MCP client is vulnerable to a code injection attack.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.18.0
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • orval-labs orval

    fixed in 7.18.0

  • @orval/mcpnpm

    fixed in 7.18.0

References 3

GitHub · orval-labs/orval

GitHub · langbyyi/CVE-2026-22785