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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-12T17:27:28.595Z
- Modified: 2026-11-12T20:18:31.503Z
- Weaknesses: CWE-89, CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- pgEdge pgedge-postgres-mcp: < 1.1.0

## References

- <https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-j7mp-839j-jrm7>
- <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

- CVE List: [CVE-2026-126196](https://www.cve.org/CVERecord?id=CVE-2026-126196), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-126196](https://nvd.nist.gov/vuln/detail/CVE-2026-126196), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-126196 · Whole record: https://cve.day/CVE-2026-126196.json · Rebuilt by cve.day 2026-11-25T22:59:50.547Z
