p PatchFirst

CVE-2026-22785

CVE-2026-22785 · orval MCP client is vulnerable to a code injection attack.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 9.3 · Critical · EPSS 0.8% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • orval

    Versions
    • < 7.18.0: Affected

    No fix published

  • @orval/mcp npm

    Affected ranges
    • SEMVER: < 7.18.0

    Update to 7.18.0

Original sources

Check your server →