{"affected":[{"product":"pgedge-postgres-mcp","source":"CNA: GitHub_M","vendor":"pgEdge","versions":[{"status":"affected","version":"< 1.1.0"}]}],"cveId":"CVE-2026-126197","cwes":["CWE-89"],"description":"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.","epss":{"date":"2026-11-13","percentile":0.31244,"score":0.00369},"exploits":[],"kev":null,"metrics":[{"score":8.8,"severity":"high","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.8,"severity":"high","source":"NVD: security-advisories@github.com","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1794596242759,"publishedAt":1794504575883,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/pull/196"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/pull/196"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9"}],"remediation":[],"revision":"3467d8cf04e9c30303473dcba111699168df04084f65524df0a9d75e060d992a","sources":[{"modifiedAt":1794596242759,"name":"CNA: GitHub_M","retrievedAt":1794597873190,"url":"https://www.cve.org/CVERecord?id=CVE-2026-126197"},{"modifiedAt":1794510546967,"name":"NVD","retrievedAt":1794529527125,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126197"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1794597885980,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-126197"}],"ssvc":{"assessedAt":1794596220288,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters","updatedAt":1794597885980}