CVE-2026-85787
nicheSQL validation bypass allows unauthorized writes in AWS Labs postgres-mcp-server
AWS Labs postgres-mcp-server before 1.1.7 contains an incomplete list of disallowed inputs (CWE-184) in its SQL validation component, so some write statements slip past the tool's read-only enforcement. An unauthenticated attacker can craft SQL embedded in content that is submitted when an authenticated user interacts with the MCP server, causing the crafted statements to execute against the connected PostgreSQL database (per CVSS 4.0, user interaction is required). The attacker gains the ability to modify data beyond the intended read-only scope (high integrity impact; no confidentiality or availability impact), without needing credentials. Any deployment running postgres-mcp-server prior to 1.1.7 is affected. There is no known exploitation, no public proof-of-concept, and EPSS puts 30-day exploitation probability at just 0.2%.
What to do: Upgrade postgres-mcp-server to version 1.1.7 or later. As interim mitigations, limit network exposure of the MCP server, run it with a database role that has tightly scoped privileges, and review database logs for unexpected writes on databases accessed through the server.
| Amazon (AWS Labs) postgres-mcp-server | all versions before 1.1.7; fixed in 1.1.7 and later |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
An incomplete list of disallowed inputs in the SQL validation component in Amazon awslabs postgres-mcp-server before version 1.1.7 might allow an unauthenticated actor to modify data beyond the read-only scope by placing crafted SQL into the content that is submitted when an authenticated user interacts with the MCP server. To remediate this issue, users should upgrade to version 1.1.7 or above.
- Weakness
- CWE-184
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.