Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant instructions in database-stored content
-
DeliveryUser's assistant retrieves poisoned content
-
ExploitModel invokes custom write tool (pl-do/pl-func/sql)
-
ExecutionBundled client skips confirmation prompt
-
ImpactUnapproved 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Pgedge Postgres Mcp
View allSQL injection in pgEdge Postgres MCP Server 1.0.0 and earlier lets an authenticated, low-privilege caller who can invoke
Read-only mode in pgEdge Postgres MCP Server 1.0.0 and earlier can be bypassed through the query_database tool, allowing
Client-side write confirmation bypass in pgEdge Postgres MCP Server 1.0.0 and earlier: the bundled CLI and web clients d
Login rate limiting in pgEdge Postgres MCP Server 1.0.0 and earlier - including all alpha and beta pre-releases - can be
SQL injection in the where parameter of the count_rows tool in pgEdge Postgres MCP Server 1.0.0 and earlier (including a
DNS rebinding exposure in pgEdge Postgres MCP Server 1.0.0 and earlier lets a web page the user is merely visiting drive
EUVD-2026-124569
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB