{"id":"CVE-2026-22785","published":"2026-01-12T18:43:16Z","modified":"2026-01-12T18:56:50Z","title":"orval MCP client is vulnerable to a code injection attack.","vendor":"orval-labs","product":"orval","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00868,"percentile":0.56356,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928d","tags":["x_refsource_MISC"]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":11.27},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.51}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-01-17","earliestUrl":"https://github.com/langbyyi/CVE-2026-22785","repos":[{"name":"langbyyi/CVE-2026-22785","url":"https://github.com/langbyyi/CVE-2026-22785","stars":1,"created":"2026-01-17"}]},"first":{"date":"2026-01-17","source":"PoC-in-GitHub","url":"https://github.com/langbyyi/CVE-2026-22785"},"provenance":"source"},"vendorSlug":"orval-labs","affectedVersions":[{"vendor":"orval-labs","product":"orval","versions":["< 7.18.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-01-12T18:56:42.000281Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@orval/mcp","vulnerableRanges":["<7.18.0"],"patched":["7.18.0"],"from":["GHSA-mwr6-3gp8-9jmj"],"provenance":"source"}],"summary":{"text":"The orval code generator (orval-labs, product orval) has a flaw in its MCP server generation logic, which builds code by string manipulation and inserts the OpenAPI specification's summary field without validation or escaping. An attacker who can supply a crafted OpenAPI or Swagger specification with a malicious summary value over the network, with no authentication or user interaction required, can break out of the string literal and inject arbitrary code into the generated output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:00Z"},"euvd":{"id":"EUVD-2026-2002","exploited":false,"provenance":"source"}}