CVE-2026-85620: SQL Allowlist Bypass Found in Postgres MCP Pro Safe Mode
A security vulnerability tracked as CVE-2026-85620 has been disclosed in Postgres MCP Pro, a tool that allows AI agents to interact with PostgreSQL databases. The flaw resides in the Safe Mode feature, which is designed to restrict agents to read-only SQL queries by parsing and validating statements against an allowlist before they reach the database. Researchers found that specially crafted SQL can fool the allowlist parser into treating a harmful query as safe, while PostgreSQL itself executes it as a destructive operation. The root cause is a parser mismatch: Postgres MCP Pro's validator and PostgreSQL's own internal parser do not interpret SQL identically, creating a gap that attackers or manipulated AI agents can exploit. Security experts note that parser-based gatekeepers are structurally fragile against adversarial inputs, and that intent- and context-aware detection layers are needed alongside syntax validation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in