{"id":"CVE-2026-126197","aliases":["CVE-2026-126197"],"related":[],"kind":"vulnerability","state":"published","title":"pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-12T17:29:35.883Z","modified":"2026-11-13T19:19:23.773Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 1.1.0","status":"affected"}],"vendor":"pgEdge","product":"pgedge-postgres-mcp","source":"cvelist"}],"references":[{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/pull/196","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-13T18:57:00.288Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126197","url":"https://www.cve.org/CVERecord?id=CVE-2026-126197","licence":"CVE Terms of Use","modified":"2026-11-13T18:57:22.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-126197","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126197","licence":"Public domain","modified":"2026-11-13T19:19:23.773Z"}],"updatedAt":"2026-11-25T22:59:50.547Z","epss":{"score":0.00462,"percentile":0.41778,"date":"2026-12-01T12:00:22.000Z"}}