| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-126197 |
| Date (index) | 2026-11-12 |
| Affected product (index) | pgEdge pgedge-postgres-mcp: pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. |
| GHSA ID | GHSA-r5pp-jx86-r6r9 |
| OWASP MCP Top 10 (2025) | MCP05 — Command Injection & Execution |
| Published / disclosed | 2026-11-12 |
| Ecosystem | Source repository |
| Component | pgEdge pgedge-postgres-mcp |
| EPSS score | 0.003690000 (FIRST EPSS, 2026-11-16) |
| CVSS score | 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CWE | CWE-89 |
| Affected versions | < 1.1.0 |
| Fixed versions | 1.1.0 |
| Fix status | Patched |
| Exploit status | Public advisory. This note does not include exploit steps. |
| Notes | Updated on 2026-11-16 from the published CVE record and FIRST EPSS. |
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.
Depends on deployment. Typical MCP cases are a reachable HTTP or SSE listener, a malicious remote MCP server, a poisoned project configuration, or a person opening attacker-influenced content. Developer workstations and shared runners are high-value when the server runs with host access.
The published weakness mapping is CWE-89. Use the linked advisory for the upstream root cause.
This weakness is in an MCP server, SDK, client, or integration. A successful attack can change which tools an agent runs, which data the agent can read, or which host commands run in the operator’s context.
File and function names belong in the linked upstream advisory and patch. This index does not repeat exploit inputs.
Upgrade to the vendor’s patched release. Keep HTTP MCP listeners authenticated and off untrusted networks until the upgrade is in place.
If no patch is available yet, do not expose the MCP listener to untrusted networks and turn off optional tools that run host commands.