{"id":"CVE-2026-126197","published":"2026-11-12T17:29:35Z","modified":"2026-11-13T18:57:22Z","title":"pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters","vendor":"pgEdge","product":"pgedge-postgres-mcp","tier":"tail","description":{"text":"pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, custom pl-do tools interpolated JSON arguments into a PostgreSQL DO block delimited by fixed dollar-quote tags. An argument containing $mcp_custom_tool$ could terminate the block and inject arbitrary SQL statements, while $mcp_args$ could inject procedural code into a plpgsql block. Because the statement used the simple query protocol, injected text could include additional statements and transaction control, bypassing read_only and accessing data or modifying resources available to the connecting role. The issue requires at least one pl-do custom tool; sql and pl-func tools pass arguments as bind parameters and are not affected by this injection mechanism. This issue is fixed in 1.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00369,"percentile":0.31584,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/pull/196","tags":["x_refsource_MISC"]},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868","tags":["x_refsource_MISC"]},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":6.32},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"pgedge","affectedVersions":[{"vendor":"pgEdge","product":"pgedge-postgres-mcp","versions":["< 1.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-13T18:57:00.288680Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-124568","exploited":false,"provenance":"source"}}