threatdeck
Live 14:45 UTC ·

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

  1. Upgrade pgEdge Postgres MCP Server to version 1.1.0 or later.
  2. Inventory custom tool definitions and identify any that use the pl-do type; sql and pl-func tools are not affected per the source.
  3. Until patched, disable or remove pl-do custom tools.
  4. Review the database role used by the MCP server and reduce its privileges to least required.
  5. 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.”

NVD (AI keyword search)

“bypassing read_only and accessing data or modifying resources available to the connecting role”

NVD (AI keyword search)

“sql and pl-func tools pass arguments as bind parameters and are not affected by this injection mechanism”

NVD (AI keyword search)

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

Following

Follow the vendors, products, AI tools, techniques and actors you care about. Matching stories, CVEs and exploited bugs are marked, a Following tab appears in the feed, and returning visits show what changed. Saved only in this browser.

Presets

Get updates

A personal RSS feed of new stories on everything you follow. Paste it into any feed reader, Slack or Teams RSS app.