{"cve":"CVE-2026-22785","nvd":{"published":"2026-01-12T19:16:04.287","modified":"2026-06-17T10:20:25.400","status":"Analyzed","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.","cvss_v4":{"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","score":9.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-77"],"references":["https://github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928d","https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmj"],"products":["orval:orval"],"source":"nvd","synced_at":"2026-10-19T22:19:41.481987139+00:00"},"epss":{"cve":"CVE-2026-22785","score":0.00778,"percentile":0.55873,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mwr6-3gp8-9jmj","url":"https://osv.dev/vulnerability/GHSA-mwr6-3gp8-9jmj","summary":"orval MCP client is vulnerable to a code injection attack.","modified":"2026-02-03T03:01:01.103140Z","packages":[{"ecosystem":"npm","name":"@orval/mcp","purl":"pkg:npm/%40orval/mcp","ranges":["<7.18.0"],"fixed":["7.18.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}