CVE-2026-85620: Vulnerability in Crystaldba Postgres-mcp
Critical. 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.
CWE-863
- Exploitation
- None confirmed
- Severity
- 9.2 of 10
- Attack likelihood
- Unknown
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
- Weakness
- CWE-863
- Published
- 4 Sept 2026
- Last change
- 24 Sept 2026
Affected products
Affected versions and the first fixed release
- Crystaldba Postgres-mcp Through 0.3.0. No fixed version recorded
Advisories
Vendor and security advisories
- 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
- vulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause-...
Related
- Postgres-mcp vulnerabilities Recent advisories, watch this product