CVE-2026-126197

published 12 Nov 2026 · updated 13 Nov 2026

pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pgEdge<1.1.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126197 severity on Zeptric[![CVE-2026-126197](https://zeptric.io/badge/cve/CVE-2026-126197.svg)](https://zeptric.io/cve/CVE-2026-126197)