Critical severity9.8OSV Advisory· Published Jan 12, 2026· Updated Jun 17, 2026
CVE-2026-22785
CVE-2026-22785
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@orval/mcpnpm | < 7.18.0 | 7.18.0 |
Affected products
3- Range: v2.0.0, v2.0.1, v2.0.2, …
Patches
Vulnerability mechanics
References
4- github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928dnvdPatchWEB
- github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmjnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-mwr6-3gp8-9jmjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-22785ghsaADVISORY
News mentions
0No linked articles in our index yet.