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

State
Published
Severity
8.1 High
Published
Nov 12, 2026
Updated
Nov 12, 2026
Reserved
Nov 10, 2026

Read the record on cve.org

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.

ProductVersions
pgedge-postgres-mcp pgEdge< 1.1.0 Affected

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command
  • CWE-693 Protection Mechanism Failure

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.