Impact
orval’s MCP client allows an attacker to inject arbitrary code by exploiting a lack of proper validation or escaping when incorporating the summary field from an OpenAPI specification into string manipulation during client generation. The vulnerability can lead to the execution of unintended code in the generated JavaScript (TypeScript) client, compromising confidentiality, integrity, or availability of systems that consume the malicious client.
Affected Systems
The vulnerability affects the orval tool produced by orval-labs, specifically versions prior to 7.18.0. All releases before 7.18.0 that rely on the MCP server generation logic are susceptible.
Risk and Exploitability
The issue has a CVSS score of 9.3, indicating high severity, and an EPSS score of less than 1%, suggesting exploitation is not common but still technically possible. It is not currently listed in the CISA KEV catalog. The attack vector is inferred to be the delivery of a crafted OpenAPI specification that contains a malicious summary field to the MCP server, thereby enabling injection of arbitrary JavaScript code.
OpenCVE Enrichment
Github GHSA