Arbitrary Command Injection Affecting @orval/mcp package, versions <7.18.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ORVALMCP-14928070
  • published14 Jan 2026
  • disclosed13 Jan 2026
  • creditNir

Introduced: 13 Jan 2026

NewCVE-2026-22785  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade @orval/mcp to version 7.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection via improper handling of the summary field during server generation logic. An attacker can execute arbitrary code by injecting malicious input into the OpenAPI specification, which is then incorporated without proper validation or escaping.

Workaround

This vulnerability can be mitigated by thoroughly reviewing and sanitizing OpenAPI yaml/json files before processing them with the CLI tool.

References

CVSS Base Scores

version 4.0
version 3.1