Skip to content
HighVulnerability

CVE-2026-126197: pgEdge Postgres MCP Server SQL injection through custom pl-do tool arguments

Identifier
CVE-2026-126197
Published
Record updated
View JSON

Summary

CVE-2026-126197 affects the pgEdge Postgres MCP Server before 1.1.0. Custom pl-do tools interpolated JSON arguments into a PostgreSQL DO block delimited by fixed dollar-quote tags, so an argument containing $mcp_custom_tool$ or $mcp_args$ could terminate the block and inject arbitrary SQL or plpgsql code. Because the simple query protocol permits multiple statements and transaction control, injected text could bypass read_only and access or modify data available to the connecting role. The issue requires at least one pl-do custom tool; sql and pl-func tools are not affected.

Mitigation

Fixed in 1.1.0.