{"answers":{"affected":"2 open source packages ship an affected version, including @orval/mcp. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-22785 in the wild and no public exploit code.","fix":"Upgrade @orval/mcp to 7.18.0 or later.","what":"CVE-2026-22785 is a critical vulnerability in orval-labs orval, published on 12 Jan 2026."},"fix_prompt":"Check this codebase for CVE-2026-22785 and fix it if it is affected.\n\nWhat it is: CVE-2026-22785 is a critical vulnerability in orval-labs orval, published on 12 Jan 2026. \nExploitation: There is no known exploitation of CVE-2026-22785 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @orval/mcp (npm): affected all versions; fixed in 7.18.0\n- @orval/mcp (npm): affected all versions; fixed in 7.18.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22785/ (Markdown: https://insights.sbomify.com/CVE-2026-22785/index.md)","id":"CVE-2026-22785","markdown":"https://insights.sbomify.com/CVE-2026-22785/index.md","name":"CVE-2026-22785","record":{"aliases":["GHSA-mwr6-3gp8-9jmj"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"orval","vendor":"orval"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-01-17","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-01-17T09:07:50Z","kind":"github_poc","ref":"https://github.com/langbyyi/CVE-2026-22785","stars":1,"title":"orval \u003c 7.18.0 MCP 服务器代码注入（CVSS 9.3）复现与利用工具"}],"tier":"poc_unverified"},"has_fix":true,"headline":"orval MCP client is vulnerable to a code injection attack.","id":"CVE-2026-22785","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Gin-vue-admin has arbitrary file upload vulnerability caused by path traversal","id":"CVE-2026-22786"},"packages":[{"ecosystem":"npm","fixed":["7.18.0"],"introduced":["0"],"last_affected":[],"package":"@orval/mcp","purl":null,"source":"GHSA-mwr6-3gp8-9jmj"},{"ecosystem":"npm","fixed":["7.18.0"],"introduced":["0"],"last_affected":[],"package":"@orval/mcp","purl":"pkg:npm/%40orval/mcp","source":"GHSA-mwr6-3gp8-9jmj"}],"prev":{"headline":"Lychee cross-album password propagation on Album unlocking","id":"CVE-2026-22784"},"products":["orval"],"published":"2026-01-12","related":[{"cvss_score":9.3,"headline":"Orval has a code injection via unsanitized x-enum-descriptions uing JS comments","id":"CVE-2026-25141","kev_date_added":null,"published":"2026-01-30"},{"cvss_score":9.3,"headline":"Orval MCP client is vulnerable to code injection via unsanitized x-enum-descriptions in enum generation","id":"CVE-2026-23947","kev_date_added":null,"published":"2026-01-20"},{"cvss_score":7.7,"headline":"Orval Mock Generation Code Injection via const","id":"CVE-2026-24132","kev_date_added":null,"published":"2026-01-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-12","vendors":["orval-labs"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-22785/"}