CVE-2026-126196
JSON

8.1high

pgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query_database

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
pgEdge pgedge-postgres-mcp< 1.1.0CVE List

Classification

CWE-89CWE-693

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-126196 changed 2026-11-12CVE Terms of Use
NVDCVE-2026-126196 changed 2026-11-12Public domain