{"id":"CVE-2026-126197","aliases":[],"cve":{"records":[{"id":"CVE-2026-126197","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-10T20:07:44.957Z","published":"2026-11-12T17:29:35.883Z","modified":"2026-11-13T18:57:22.759Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-11-12T17:29:35.883Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-13T18:57:22.759Z"}],"references":[{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/pull/196","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0","tags":["x_refsource_MISC"],"source":"GitHub_M"}],"weaknesses":[{"id":"CWE-89","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-13T18:57:00.288680Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"title":"pgEdge Postgres MCP Server SQL injection through custom pl-do tool parameters","titleSource":"GitHub_M","descriptionSource":"GitHub_M","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.","score":8.8,"severity":"high","published":"2026-11-12T17:29:35.883Z","modified":"2026-11-13T18:57:22.759Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"pgEdge","name":"pgedge-postgres-mcp","platforms":[],"versions":[{"version":"< 1.1.0","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-126197"}],"remediation":[],"references":["https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-r5pp-jx86-r6r9","https://github.com/pgEdge/pgedge-postgres-mcp/pull/196","https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868","https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0"],"sources":[{"name":"CVE","id":"CVE-2026-126197","modified":"2026-11-13T18:57:22.759Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-126197"}],"assessments":[{"source":"GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8}],"sourceAffected":[],"observedAt":"2026-11-13T21:01:56.659Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T20:25:31.800Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-12T20:45:34.306Z","attemptedAt":"2026-11-12T20:45:34.306Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-12T20:40:38.047Z","attemptedAt":"2026-11-12T20:40:38.047Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-12T20:40:38.075Z","attemptedAt":"2026-11-12T20:40:38.075Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-12T20:45:33.524Z","attemptedAt":"2026-11-12T20:45:33.524Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-124568","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-124568","modified":"Nov 12, 2026, 5:29:35 PM","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-12T20:40:38.075Z"},{"source":"NVD","id":"CVE-2026-126197","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126197","modified":"2026-11-12T19:09:06.967","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-12T20:45:34.306Z"}],"aiSummary":{"text":"pgEdge Postgres MCP Server versions prior to 1.1.0 are vulnerable to SQL injection through custom pl-do tool parameters. An attacker with access to a custom pl-do tool can inject arbitrary SQL statements. The issue allows bypassing read-only access and modifying resources.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-12T19:21:04.825Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-126197"}]}}