Vulnerabilities/

orval MCP client is vulnerable to a code injection attack.

Severity:
High

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:

References

Related Issues

Tags:
npm
@orval/mcp
Anything's wrong? Let us know Last updated on January 13, 2026