Vulnerability

CVE-2026-126197

highCVSS 3.1 8.8Published 12 Nov 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8…
  • github.com /pgEdge/pgedge-postgres-mcp/pull/196
  • github.com /pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0
  • github.com /pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-j…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning