AWS Postgres MCP Server Bug: "Read-Only" Wasn't Read-Only

Hi all. Two Postgres MCP security notes came out on the same day this September, and both teach the same lesson. This is the first one.

On 4 September 2026 AWS published a bulletin for CVE-2026-85787 in awslabs postgres-mcp-server. The SQL validation used an incomplete list of disallowed inputs, so crafted SQL, hidden in content that reaches the MCP server while a real user is working with it, could change data even though the server was meant to stay read-only. Versions below 1.1.7 are affected, 1.1.7 fixes it, and AWS also recommends connecting with a minimal-privilege Postgres role instead of a superuser.

That last recommendation is the real fix in my eyes. A read-only flag in a tool is a filter written by people, and filters miss things. A Postgres role that only has SELECT can't write, no matter how clever the SQL is.

If you use this server: upgrade to 1.1.7 or later, check forks too, and look at which role the connection uses. If it's a superuser or the app owner, that's the thing to change today.

Read the original:

This is my short summary and opinion. All details and credit belong to the original article linked above.

Comments