Paper/Archive/CVE-2026-22785

CVE-2026-22785

orval-labs orval — orval MCP client is vulnerable to a code injection attack.

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
orval< 7.18.0–CNA

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub_M (CNA)9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: total

References

refgithub.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmjrefgithub.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928d