{"id":"GHSA-v2x6-wwfw-r2rq","summary":"Agentgateway is missing parameter sanitization in MCP to OpenAPI conversion","details":"### Summary\n\nWhen converting MCP `tools/call` request to OpenAPI request, input path, query, and header values are not sanitized.\n\n### Details\n\nWhen using the [MCP to OpenAPI](https://agentgateway.dev/docs/standalone/latest/mcp/connect/openapi/) feature, the proxy lacks proper sanitization of input parameters in the MCP call, allowing:\n* Injection of additional path or query parameters.\n* Injection of additional headers.\n\n### Impacted Versions\n\nThis vulnerability is fixed in Agentgateway v0.12.0+. Users on older versions are recommended to upgrade to v0.12.0+.\n\nThis feature only impacts usage of the [MCP to OpenAPI](https://agentgateway.dev/docs/standalone/latest/mcp/connect/openapi/) feature\n\n### Credits\n\nAgentgateway extends its thanks to @spacewander for the report!","aliases":["CVE-2026-29791"],"modified":"2026-03-06T23:01:26.649099Z","published":"2026-03-05T01:02:47Z","database_specific":{"cwe_ids":["CWE-20"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-03-05T01:02:47Z","nvd_published_at":"2026-03-06T21:16:15Z"},"references":[{"type":"WEB","url":"https://github.com/agentgateway/agentgateway/security/advisories/GHSA-v2x6-wwfw-r2rq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29791"},{"type":"WEB","url":"https://github.com/agentgateway/agentgateway/commit/9a5287569d892e77a8be8c3bb7bf3d7744244274"},{"type":"PACKAGE","url":"https://github.com/agentgateway/agentgateway"}],"affected":[{"package":{"name":"github.com/agentgateway/agentgateway","ecosystem":"Go","purl":"pkg:golang/github.com/agentgateway/agentgateway"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-v2x6-wwfw-r2rq/GHSA-v2x6-wwfw-r2rq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"}]}