# CVE-2026-126196 - pgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query\_database

DevFeed: [CVE-2026-126196 - pgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query\_database](<https://devfeed.tech/articles/cve-2026-126196-pgedge-postgres-mcp-server-read-only-mode-can-be-bypassed-by-sql-statement-smuggling-through-query-database-130808.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-126196>)

Author: CVEFEED.io; github.com

Published: 2026-11-12T18:17:24Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [cve-2026-126196](<https://devfeed.tech/tags/cve-2026-126196.md>), [database](<https://devfeed.tech/tags/database.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [model-context-protocol](<https://devfeed.tech/tags/model-context-protocol.md>), [pgedge](<https://devfeed.tech/tags/pgedge.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [sql](<https://devfeed.tech/tags/sql.md>), [transaction](<https://devfeed.tech/tags/transaction.md>)

## AI overview

Before version 1.1.0, pgEdge Postgres MCP Server could bypass `read_only` through `query_database`: unrecognized SQL sent via pgx Exec without bind parameters used PostgreSQL's simple query protocol, which accepts multiple semicolon-separated statements. When the connecting role had write privileges, a caller could combine transaction or session changes with database writes; pooled session state could also leave later calls writable. The issue could affect integrity and availability, but the description reports no added confidentiality impact beyond permitted reads. The issue is fixed in version 1.1.0.

## Source excerpt

CVE ID :CVE-2026-126196 Published : Nov. 12, 2026, 6:17 p.m. | 1 hour, 26 minutes ago Description :pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, query_database on a read_only connection could send unrecognized statements through pgx Exec without bind parameters, selecting PostgreSQL's simple query protocol and allowing multiple semicolon-separated statements in one request. A caller could combine transaction or session state changes with database writes, and pooled session state could leave later calls writable, when the connecting role held write privileges. The flaw affected deployments relying on read_only as a safety boundary, could compromise integrity and availability, and did not add confidentiality impact beyond the reads already permitted by the connection. This issue is fixed in 1.1.0. Severity: 8.1 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...