HighVulnerability
CVE-2026-126197: pgEdge Postgres MCP Server SQL injection through custom pl-do tool arguments
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-126197
- Published
- Record updated
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.
Topics
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online