CVE-2026-85620
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 pgreadfile through FROM-clause syntax to read arbitrary files despite restricted-mode protections.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85620.json, https://nvd.nist.gov/vuln/detail/CVE-2026-85620, https://www.vulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause-function, https://github.com/crystaldba/postgres-mcp/issues/178, https://github.com/crystaldba/postgres-mcp, https://github.com/crystaldba/postgres-mcp/blob/v0.3.0/src/postgresmcp/sql/safesql.py