Vulnerability library
Security checkJanuary 13, 2026

orval MCP client is vulnerable to a code injection attack.

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@orval/mcp

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Here is an example OpenAPI with the exploit

Recommendation

Update the @orval/mcp package to the latest compatible version. Followings are version details:

  • Affected version(s): < 7.18.0
  • Patched version(s): 7.18.0

References

Could your website be exposed too?

SmartScanner can check your website for orval MCP client is vulnerable to a code injection attack. and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 13, 2026