CVE-2026-126199 · AI agents & MCP
NO FIX YET · SEE WHAT TO DO
The pgEdge Postgres MCP Server, which lets AI clients run SQL against PostgreSQL, classified some write statements as reads, such as SELECT INTO, data-modifying WITH queries and EXPLAIN ANALYZE of a write. On connections with allow_writes enabled, those statements ran without the write confirmation prompt.
first public Nov 11, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams running the pgEdge Postgres MCP Server before 1.1.0 with an allow_writes connection, where an AI client or the bundled CLI and web clients can issue SQL. Read-only connections are protected by PostgreSQL transaction access mode, so they are not exposed to this flaw.
Not affected if read-only-connections, version-1.1.0-or-later
Who cares ai-agents, mcp, pgedge, postgres
1.1.0 are affected.allow_writes enabled in the server configuration.1.1.0 or later.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.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.