CVE-2026-22785 orval MCP client is vulnerable to a code injection attack.
CriticalCVSS 9.3
EPSS 0.78%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Prior to 7.18.0, 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. This vulnerability is fixed in 7.18.0.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| orval | < 7.18.0 | 7.18.0 | Fixed |
| orval @orval/mcp(npm) | < 7.18.0 | 7.18.0 | Fixed |
| orval-labs orval | = < 7.18.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| orval-labs orval | = < 7.18.0 | No fix listed |
| orval @orval/mcp(npm) | < 7.18.0 | 7.18.0 |
| orval | < 7.18.0 | 7.18.0 |
References
- https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmj exploit vendor-advisory
- https://github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928d patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product