Skip to main content

pgEdge Postgres MCP Server CVE-2026-126198

| EUVDEUVD-2026-124569 LOW
Insufficient UI Warning of Dangerous Operations (CWE-357)
2026-11-12 GitHub_M
3.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Plant instructions in database-stored content
  2. Delivery
    User's assistant retrieves poisoned content
  3. Exploit
    Model invokes custom write tool (pl-do/pl-func/sql)
  4. Execution
    Bundled client skips confirmation prompt
  5. Impact
    Unapproved write executes on database

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V6 - Authentication Insufficient UI warning of dangerous op
Exploitation Conditions

Exploitation requires a specific operator configuration, all of which must hold: pgEdge Postgres MCP Server at version 1.0.0 or earlier; one or more custom tools that write (any pl-do or pl-func tool, or a sql tool whose statement modifies data); a database connection configured with allow_writes:true; use of one of the bundled clients (CLI or web client); and reliance on that client's confirmation prompt as the control. The typical trigger is a model following instructions embedded in retrieved/stored content, so user interaction with the assistant is needed (UI:R). Limiting factors that reduce realistic risk: the issue only affects writes the operator themselves built into custom tools; connecting with a database role that lacks write privileges (or a read-only connection) prevents the write regardless of client prompting (the vendor's stated workaround); the built-in read-only tools and ordinary query_database reads are unaffected; and third-party MCP clients never used this bundled-client prompt, so their own approval model governs them.

Impact

All signals converge on low real-world urgency. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N) yields a base score of 3.1 (Low): network reachable but high attack complexity, user interaction required, no confidentiality or availability impact, and only low integrity impact. The vuln.today Decision label is 'monitor', not act_now or emergency. KEV status is negative (not CISA-listed), and no EPSS score was supplied in the input. The references (GHSA advisory, pull request #198, fix commit, v1.1.0 release) are vendor patch artifacts, not exploit code - no public exploit identified at time of analysis. The signals are internally consistent: a low-severity, operator-configuration-dependent client-side warning gap rather than a server authorization bypass. One nuance to verify: the vector encodes PR:N (unauthenticated), yet real exploitation is heavily gated by operator choices - the deployment must run custom write tools (pl-do, pl-func, or data-modifying sql) on a connection with allow_writes:true through a bundled client and rely on the confirmation prompt as a control. The 'attacker' here typically acts through instructions planted in retrieved database content (prompt injection) rather than by authenticating. The advisory is explicit that the missing confirmation prompt is a bundled-client convenience feature, not a server authorization boundary, so this is a defense-in-depth weakening, not a direct break. Net: a genuine but low-priority issue; patch during normal maintenance.

Exploit ScenarioDerived

An attacker stores a row or document containing hidden instructions in a table that a user's assistant later retrieves (for example via similarity search). When that content is returned to a bundled CLI or web client on an allow_writes:true connection that exposes custom write tools, the model follows the planted instructions and invokes a pl-do, pl-func, or data-modifying sql tool, which the client executes without showing the user a confirmation prompt because it only prompts on the query_database tool name. No public exploit identified at time of analysis; high attack complexity and the requirement for operator-configured custom write tools limit practicality.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

pgEdge Postgres MCP Server 1.0.0 and earlier ship bundled CLI and web clients that decide whether to ask the user for confirmation by matching the tool name query_database instead of reading the MCP readOnlyHint/destructiveHint annotations the server publishes, so write-capable custom tools (any pl-do or pl-func tool, or a sql tool whose statement modifies data) run without a prompt on allow_writes:true connections. The realistic consequence is an unapproved write the operator never saw - for example when a model follows instructions planted in retrieved database content - but only for writes the operator themselves defined in their own custom tools; built-in read-only tools and ordinary query_database reads are unaffected, and third-party MCP clients never inherited this prompt. Fixed in 1.1.0; no public exploit code identified at time of analysis, and the aggregated priority signal is monitor.

RemediationAI

Upgrade to pgEdge Postgres MCP Server 1.1.0 or later, which is the vendor-released fix: custom tools now carry the readOnlyHint/destructiveHint annotations already used on query_database, both bundled clients prompt based on those annotations rather than the tool name, and unclassifiable statements are assumed to write so a wrong guess costs a prompt instead of a silent write. The change is in pull request https://github.com/pgEdge/pgedge-postgres-mcp/pull/198 and commit https://github.com/pgEdge/pgedge-postgres-mcp/commit/c86d5cbe6d65c6debd0d0e909ce320271caa4d90, documented in advisory GHSA-v44x-hxg7-5cgc. If upgrading immediately is not possible, the vendor's stated workaround is to connect with a database role that has no write privileges (or an otherwise read-only connection) wherever custom tools are not required to write, so the database refuses the write regardless of whether the client prompts - the trade-off is that legitimate custom-tool writes stop working on that connection. Operators should also review their custom tool definitions to identify which of their own tools write, and review database audit logs for writes made through custom tools that were not expected. Note that the untrusted-content system prompt added in 1.1.0 applies only to the CLI, since the web client sends no system prompt, and the vendor treats it as a mitigation rather than a control; a separate defect involving misclassification of writing statements as reads is covered by GHSA-5gmh-9683-hhq9.

Affected VersionsENISA

pgedge-postgres-mcp < 1.1.0

Affected Packages

euvd pgedge_postgres_mcp fix: 1.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The product is a Model Context Protocol (MCP) server that exposes PostgreSQL access to MCP-compatible AI clients; the affected code is the bundled CLI (internal/chat/client.go) and web client, not the database engine. The root cause class is CWE-357, Insufficient UI Warning of Dangerous Operations: the confirmation gate was keyed to a single hardcoded tool name, query_database, so any other tool the server advertised - custom pl-do and pl-func wrappers, and sql tools whose statements write - bypassed the warning entirely even though the server already carried MCP readOnlyHint:false and destructiveHint:true annotations on query_database. MCP tool annotations are advisory metadata a client may honor or ignore; the vendor's own documentation states the prompt is a property of the two bundled clients, not a server authorization boundary, so the server executes any call it accepts and any other client holding a token applies its own approval model. The fix in 1.1.0 propagates the annotations to custom tools, treats any pl-do/pl-func tool and any non-plainly-read sql tool as write-capable, assumes writing when a statement cannot be classified, and marks every custom tool read-only on connections that forbid writes. A related but distinct defect, where the prompt misclassified certain writing statements as reads, is tracked separately as GHSA-5gmh-9683-hhq9. The commit also adds a CLI system-prompt rule treating all tool output as untrusted data; the vendor explicitly frames that as a mitigation rather than a control, notes the web client sends no system prompt at all, and states the only measure that reliably stops self-propagating content is the absence of write access.

Know when Pgedge Postgres Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 3.1 LOW
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 3.1 LOW

Exploitation needs operator-configured custom write tools on an allow_writes connection and user-driven assistant interaction (AC:H, UI:R); impact is limited to unapproved writes (I:L, C:N/A:N), attacker needs no credentials (PR:N).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 12, 2026 - 18:18 EUVD

DescriptionCVE.org

pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, the bundled clients, including the CLI and web client, decided whether to request write confirmation by checking only for the query_database tool name instead of server-published write annotations. Custom pl-do, pl-func, and writing sql tools therefore ran without confirmation on allow_writes connections, including when a model followed instructions in retrieved content. The affected control is a bundled-client warning rather than a server authorization boundary, and other MCP clients do not inherit that prompt. This issue is fixed in 1.1.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
new niche MCP server for PostgreSQL, limited production footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

16
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy