---
id: CVE-2026-85620
title: >-
  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
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-clau…
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'
cwe:
  - CWE-863
vendor: crystaldba
product: postgres-mcp
affected:
  - postgres-mcp <= 0.3.0
published: '2026-09-04'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:44:42.207'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85620'
references:
  - url: 'https://github.com/crystaldba/postgres-mcp'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/crystaldba/postgres-mcp/blob/v0.3.0/src/postgres_mcp/sql/safe_sql.py
    label: disclosure@vulncheck.com
  - url: 'https://github.com/crystaldba/postgres-mcp/issues/178'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause-function
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
epss: 0.00506
epssPercentile: 0.40562
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-14T19:19:58.465013Z'
ingestedAt: '2026-09-14T20:14:21.164Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
