{"id":"CVE-2026-126199","summary":"pgEdge Postgres MCP Server write confirmation skipped for writes that begin with a reading keyword","details":"pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, the bundled CLI and web clients classified query_database statements only by their first keyword before deciding whether to display a write confirmation. SELECT INTO, data-modifying common table expressions beginning with WITH, and EXPLAIN ANALYZE of a write were treated as reads and could execute without confirmation on an allow_writes connection. Read-only connections remain protected by PostgreSQL transaction access mode, and EXPLAIN without ANALYZE and SELECT FOR UPDATE remain classified as reads. This issue is fixed in 1.1.0.","aliases":["GHSA-5gmh-9683-hhq9"],"modified":"2026-11-13T02:47:25.517038942Z","published":"2026-11-12T17:32:08.972Z","database_specific":{"cwe_ids":["CWE-357"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126199.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126199.json"},{"type":"FIX","url":"https://github.com/pgEdge/pgedge-postgres-mcp/commit/310c02809891cfaee6e4891cd7bb9aa1d459575c"},{"type":"FIX","url":"https://github.com/pgEdge/pgedge-postgres-mcp/pull/233"},{"type":"WEB","url":"https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0"},{"type":"ADVISORY","url":"https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-5gmh-9683-hhq9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126199"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pgedge/pgedge-postgres-mcp","events":[{"introduced":"0"},{"fixed":"25c2aaed03398584ceea0dd71f7f67631c3dff4e"},{"fixed":"310c02809891cfaee6e4891cd7bb9aa1d459575c"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"1.1.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"310c02809891cfaee6e4891cd7bb9aa1d459575c"}]},{"original_tag":"v1.1.0","range":[{"fixed":"25c2aaed03398584ceea0dd71f7f67631c3dff4e"}],"source":"REFERENCES_TAG"}]}}],"versions":["kb-2026-04-27","kb-2026-04-22","v1.0.0","v1.0.0-beta3a","v1.0.0-beta3","v1.0.0-beta1","v1.0.0-alpha6","v1.0.0-alpha5","v1.0.0-alpha4","v1.0.0-alpha3","v1.0.0-alpha2","v1.0.0-alpha1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126199.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H"}]}