๐Ÿ” CVE Alert

CVE-2026-126197

HIGH 8.8

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

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-89
Vendor pgedge
Product pgedge-postgres-mcp
Published Nov 12, 2026
Stay Ahead of the Next One

Get instant alerts for pgedge pgedge-postgres-mcp

Be the first to know when new high vulnerabilities affecting pgedge pgedge-postgres-mcp are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

pgEdge / pgedge-postgres-mcp
< 1.1.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9 github.com: https://github.com/pgEdge/pgedge-postgres-mcp/pull/196 github.com: https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868 github.com: https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0