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 scanRelated Issues
- @elgentos/magento2-dev-mcp vulnerable to command injection - CVE-2026-5603
- Orval Mock Generation Code Injection via const - CVE-2026-24132
- Orval has Code Injection via unsanitized x-enum-descriptions using JS comments - CVE-2026-25141
- @siteboon/claude-code-ui Vulnerable to Unauthenticated RCE via WebSocket Shell Injection - CVE-2026-31975


