CVE-2026-85620
Postgres MCP Pro 0.3.0 contains a restricted-mode bypass …
Postgres MCP Pro 0.3.0 contains a restricted-mode bypass vulnerability where function-name validation is not applied to RangeFunction nodes in FROM clauses. Attackers can execute file-reading functions like pg_read_file through FROM-clause syntax to read arbitrary files despite restricted-mode protections.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/crystaldba/postgres-mcp
- github.com/crystaldba/postgres-mcp/blob/v0.3.0/src/postgres_mcp/sql/safe_sql.py
- github.com/crystaldba/postgres-mcp/issues/178
- www.vulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause
- nvd.nist.gov/vuln/detail/CVE-2026-85620
- cve.org/CVERecord?id=CVE-2026-85620
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.