# CVE-2026-126197 - pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters

DevFeed: [CVE-2026-126197 - pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters](<https://devfeed.tech/articles/cve-2026-126197-pgedge-postgres-mcp-server-sql-injection-through-custom-pl-do-tool-parameters-130809.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-126197>)

Author: CVEFEED.io; github.com

Published: 2026-11-12T18:17:24Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [cve-2026-126197](<https://devfeed.tech/tags/cve-2026-126197.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [pgedge](<https://devfeed.tech/tags/pgedge.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-injection](<https://devfeed.tech/tags/sql-injection.md>)

## AI overview

Before version 1.1.0, pgEdge Postgres MCP Server's custom pl-do tools interpolated JSON arguments into PostgreSQL DO blocks using fixed dollar-quote tags. Arguments containing those tags could break out of the block and inject SQL or procedural code; use of the simple query protocol allowed additional statements and transaction control, potentially bypassing read_only and accessing or modifying resources available to the connecting role. Exploitation requires at least one pl-do custom tool. The described injection mechanism does not affect sql or pl-func tools, which use bind parameters. The issue is fixed in version 1.1.0.

## Source excerpt

CVE ID :CVE-2026-126197 Published : Nov. 12, 2026, 6:17 p.m. | 1 hour, 26 minutes ago Description :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. Severity: 8.8 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...