Skip to content
Heist/ feed
Back to feed
Critical

Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-85620
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 18:04 UTC · Revision 1

Source evidence

Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function

core-osv · Original source

Published 4 Sept 2026, 14:32 UTC

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.

osv:CVE-2026-85620
Complete source record
{
  "id": "35f01dc55b91061b4be04631a6d207a008ffa0e24b154040cce9a9b2e53dca10",
  "url": "https://osv.dev/vulnerability/CVE-2026-85620",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function",
    "summary": "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.",
    "evidence": "osv:CVE-2026-85620",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-85620",
      "aliases": [
        "CVE-2026-85620"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/crystaldba/postgres-mcp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "7179ab0336396f819e23b0b012a9c284be10fac3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.3.0",
            "v0.2.0",
            "v0.2.0rc1",
            "v0.1.1",
            "v0.1.1rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85620.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.052751789Z",
      "provider": "osv",
      "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/postgres_mcp/sql/safe_sql.py"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-863"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85620.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85620",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 498144,
  "published_at": "2026-09-04T14:32:11.907+00:00"
}