Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant instructions in retrievable content
-
DeliveryModel issues query_database statement
-
ExploitStatement leads with SELECT/WITH/EXPLAIN keyword
-
ExecutionClient skips write-confirmation prompt
-
ImpactUnauthorized INSERT/UPDATE/DELETE runs on writable connection
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V6 - Authentication Insufficient UI warning of dangerous op
|
| Exploitation Conditions | Exploitable only when all of these hold: the deployment runs pgEdge Postgres MCP Server at version 1.0.0 or earlier; a query_database connection has allow_writes:true; the connecting PostgreSQL role actually holds write (INSERT/UPDATE/DELETE/DDL) privileges; and the operator uses the bundled CLI or web client and relies on its write-confirmation prompt as the safeguard. The qualifying statements are specifically SELECT ... INTO, data-modifying CTEs beginning with WITH, and EXPLAIN ANALYZE of a write. Limiting factors: read-only connections are not affected at all because PostgreSQL's server-side transaction access mode refuses the write regardless of the client; the confirmation prompt is a client-side convenience, not a server security boundary; exploitation requires an active operator session (UI:R) and the non-default allow_writes configuration (contributing to AC:H); and the damage is capped by the privileges of the connecting role. |
| Impact | This is a moderate, conditional-risk issue rather than an urgent one. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H, base 6.8) shows network reach but high attack complexity and required user interaction, with impact limited to integrity and availability (C:N). No EPSS score is present in the input and KEV status is not set, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month', which is a routine-patch cadence rather than act_now/emergency. No verified working exploit is indicated - the supplied references are the advisory, fix PR, fix commit and release, not weaponized PoC code - so exploitation status is: no public exploit identified at time of analysis, though the GHSA advisory does spell out exact trigger statements (SELECT ... INTO, data-modifying WITH CTEs, EXPLAIN ANALYZE of a write). The AC:H and UI:R metrics are consistent with the mechanism described: the flaw only matters when an operator has explicitly enabled allow_writes on a write-privileged connection and relies on the bundled client's confirmation prompt as a control. One nuance to verify: PR:N treats this as unauthenticated, which is accurate from the perspective of a prompt-injection attacker who controls retrieved content but holds no database privileges - the write still runs under the victim connection's own role, so the real blast radius is bounded by what that role may already do. Net: a genuine defense-in-depth gap worth patching on normal cadence, not a high-CVSS-but-illusory issue, but also not an emergency absent any exploitation telemetry. |
| Exploit ScenarioDerived | An operator runs the pgEdge Postgres MCP bundled CLI or web client against a connection with allow_writes:true, using a role that can modify data. The model, following instructions planted in content it retrieved, issues a query_database statement such as 'WITH d AS (DELETE FROM t RETURNING 1) SELECT 1' or 'SELECT ... INTO backup'; because the client classifies by the first keyword only, it treats these as reads and executes them without showing the write-confirmation prompt. No verified public exploit is identified, but the advisory documents the exact qualifying statement forms, and the high attack complexity plus required operator session reflect the non-default allow_writes precondition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Client-side write confirmation bypass in pgEdge Postgres MCP Server 1.0.0 and earlier: the bundled CLI and web clients decided whether to prompt by looking only at a statement's first keyword, so statements beginning with SELECT, WITH or EXPLAIN were shown as reads even when they created a table (SELECT ... INTO), carried a data-modifying CTE, or used EXPLAIN ANALYZE to actually execute a write. An attacker who can influence what the model is asked to run - for example through instructions planted in retrieved content - could get an INSERT, UPDATE or DELETE executed without the operator being asked for confirmation, but only if the deployment has allow_writes:true on that connection, the connecting PostgreSQL role really holds write privileges, and the operator uses the bundled clients and treats the prompt as a control. Read-only connections are unaffected because the server's transaction access mode refuses the write; this is a client-side convenience prompt, not a server security boundary, and the independent assessment rates it moderate and conditional (CVSS 6.8, UI:R, AC:H) rather than urgent. No public exploit code or active exploitation is indicated; the fix is in 1.1.0.
RemediationAI
Upgrade to pgEdge Postgres MCP Server 1.1.0 or later, which is the vendor-released fix (release tag v1.1.0; commit 310c02809891cfaee6e4891cd7bb9aa1d459575c, PR #233) and classifies statements on comment-stripped, literal-blanked code so SELECT ... INTO, data-modifying CTEs behind WITH, and EXPLAIN ANALYZE of a write now trigger the confirmation prompt. If upgrading is not immediately possible, leave allow_writes disabled on query_database connections, or connect with a PostgreSQL role that has no write privileges, so the database itself refuses the write regardless of what the client prompts for - the trade-off being that legitimate write workflows through the MCP server stop working until a suitably privileged, patched setup is in place. Because the prompt is a client-side convenience rather than a security boundary, do not treat it as the sole control: restrict who can reach the MCP server and which model-visible content can influence its queries. Finally, review database audit logs for unexpected writes made through query_database, particularly statements beginning with WITH, SELECT ... INTO or EXPLAIN ANALYZE, and check the advisory at https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-5gmh-9683-hhq9 for updates.
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
pgEdge Postgres MCP Server exposes SQL execution against PostgreSQL through Model Context Protocol clients. The flaw is CWE-357 (insufficient UI warning of dangerous operations): the confirmation gate in the bundled clients classified each query_database statement by its leading keyword only. PostgreSQL lets a statement that opens with a reading keyword still write - SELECT ... INTO creates and populates a table, a WITH-prefixed common table expression can carry INSERT/UPDATE/DELETE (e.g. WITH d AS (DELETE FROM t RETURNING 1) SELECT 1), and EXPLAIN ANALYZE executes the plan it is given instead of merely planning it - so all three slipped past the prompt on an allow_writes connection. Because the statement text is chosen freely through the model rather than fixed in a custom tool definition, prompt-injected content could steer the model into such a statement. The fix introduces a shared SQL scanner (internal/sqltext, mirrored in web/src/utils/sqlText.js for the web client) that classifies comment-stripped, literal-blanked code, treats SELECT ... INTO, data-modifying CTEs and EXPLAIN ANALYZE of a write as writes, and still treats EXPLAIN without ANALYZE and SELECT ... FOR UPDATE as reads; it also corrects scanner handling of E'...' backslash escapes, plain-literal backslashes, and $ inside identifiers that could otherwise mask a trailing write. The advisory notes textual classification cannot see writes performed inside called functions; enforcement on read-only connections comes from the server-side transaction access mode, not the prompt.
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:H/A:H
AC:H and UI:R reflect the required non-default allow_writes/write-privileged connection and active operator session; PR:N as the injecting attacker needs no DB privileges; C:N since the flaw permits writes (I:H) and destructive statements (A:H), not disclosure.
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 CLI and web clients classified query_database statements only by their first keyword before deciding whether to display a write confirmation. SELECT INTO, data-modifying common table expressions beginning with WITH, and EXPLAIN ANALYZE of a write were treated as reads and could execute without confirmation on an allow_writes connection. Read-only connections remain protected by PostgreSQL transaction access mode, and EXPLAIN without ANALYZE and SELECT FOR UPDATE remain classified as reads. 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
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
pgEdge Postgres MCP Server 1.0.0 and earlier ship bundled CLI and web clients that decide whether to ask the user for co
EUVD-2026-124570
NVD
CVE.org
EPSS
GitHub
Exploit-DB