GHSA-V2X6-WWFW-R2RQ
Vulnerability from github – Published: 2026-03-05 01:02 – Updated: 2026-03-06 22:51Summary
When converting MCP tools/call request to OpenAPI request, input path, query, and header values are not sanitized.
Details
When using the MCP to OpenAPI feature, the proxy lacks proper sanitization of input parameters in the MCP call, allowing: * Injection of additional path or query parameters. * Injection of additional headers.
Impacted Versions
This vulnerability is fixed in Agentgateway v0.12.0+. Users on older versions are recommended to upgrade to v0.12.0+.
This feature only impacts usage of the MCP to OpenAPI feature
Credits
Agentgateway extends its thanks to @spacewander for the report!
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/agentgateway/agentgateway"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-29791"
],
"database_specific": {
"cwe_ids": [
"CWE-20"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-05T01:02:47Z",
"nvd_published_at": "2026-03-06T21:16:15Z",
"severity": "MODERATE"
},
"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!",
"id": "GHSA-v2x6-wwfw-r2rq",
"modified": "2026-03-06T22:51:46Z",
"published": "2026-03-05T01:02:47Z",
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Agentgateway is missing parameter sanitization in MCP to OpenAPI conversion"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.