CVE-2026-126196
published high CVSS 3.1 · 8.1pgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query_database
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pgEdge | — | pgedge-postgres-mcp< 1.1.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pgEdge | pgedge-postgres-mcp | < 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command
- CWE-693 CWE-693: Protection Mechanism Failure
References
4- https://github.com/pgEdge/pgedge-postgres-mcp/commit/b5b929305de7a22cd6ed7de8ae1be2ac90ca0868
- https://github.com/pgEdge/pgedge-postgres-mcp/pull/196
- https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0
- https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-j7mp-839j-jrm7
Provider assertions
2GitHub_M · cna
pgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query_database
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d71a2a8dc2da7d68521c577b0124e6fe3014d11933833da5a05d6a889bc31230
- Ingested
- 12 Nov 2026, 19:34:43 UTC
- Source record
- Official CVE record