AI Stack Alert High CVE-2026-126197 For AppSec, AI Eng, SOC / IR, CISO AI-assisted
CVE-2026-126197: pgEdge Postgres MCP Server pl-do custom tools allow SQL injection before 1.1.0
pgEdge Postgres MCP Server versions prior to 1.1.0 interpolated JSON arguments from custom pl-do tools into a PostgreSQL DO block with fixed dollar-quote tags. An argument containing the tag text could terminate the block and inject arbitrary SQL, bypassing read_only and reaching data or resources available to the connecting role. The issue is fixed in 1.1.0 and requires at least one pl-do custom tool.
Why it matters
Organizations exposing this MCP server to AI clients may have a database role that can read or modify data beyond what read_only was meant to allow. CVSS base score is 8.8.
Do this
- Upgrade pgEdge Postgres MCP Server to version 1.1.0 or later.
- Inventory custom tool definitions and identify any that use the pl-do type; sql and pl-func tools are not affected per the source.
- Until patched, disable or remove pl-do custom tools.
- Review the database role used by the MCP server and reduce its privileges to least required.
- Audit PostgreSQL logs for unexpected DO blocks or transaction control statements originating from the MCP server.
Exploit Clock
No signals yet
- No exploitation signals yet
Signals
- NoCISA KEV
- 8.8CVSS
- NoPublic PoC
- 36/100Priority
- 80%Confidence
Evidence
“Prior to 1.1.0, custom pl-do tools interpolated JSON arguments into a PostgreSQL DO block delimited by fixed dollar-quote tags.”
“bypassing read_only and accessing data or modifying resources available to the connecting role”
“sql and pl-func tools pass arguments as bind parameters and are not affected by this injection mechanism”
Sources
Affected / related
pgEdge Postgres MCP Server, SQL injection via dollar-quoted DO block
Published 2026-11-12 18:17 UTC · updated 2026-11-12 20:35 UTC · AI-assisted summary, checked against quoted sources · How we score