CVE-2026-126197 — pgEdge pgedge-postgres-mcp
One of 4 pgEdge pgedge-postgres-mcp vulnerabilities published together by NVD: our article covers all of them.
AIDatabasesVulnerabilitiesLaw enforcementResearch article
pgEdge Postgres MCP Server SQL Injection Flaw in Versions Before 1.1.0
| CVE | CVE-2026-126197 |
|---|---|
| Vendor and product | pgEdge pgedge-postgres-mcp |
| Published | November 24, 2026 20:20 UTC |
| Research cut-off | November 24, 2026 19:50 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-13); CISA KEV catalog; FIRST EPSS (2026-11-24) |
Executive summary
CVE-2026-126197 impacts the pgEdge Postgres MCP Server when used with versions older than 1.1.0, permitting SQL injection through the improper handling of JSON arguments. The CVSS 3.1 score is 8.8 HIGH, with the score assigned by security-advisories@github.com [1]. There is no confirmed evidence of exploitation in the reviewed sources [2]. The recommended course of action is to upgrade to version 1.1.0 [1].
Key points
- CVE-2026-126197 enables SQL injection through the improper processing of JSON arguments in the pgEdge Postgres MCP Server [1].
- The CVSS 3.1 score is 8.8 HIGH, with the score assigned by security-advisories@github.com [1].
- The reviewed sources do not provide any evidence of exploitation [2].
- The vulnerability is resolved in version 1.1.0 [1].
- The EPSS score estimates a 0.37% probability of exploitation within the next 30 days [3].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-126197 | pgEdge | pgedge-postgres-mcp | CWE-89 | 8.8 HIGH, scored by security-advisories@github.com | 2026-11-12T18:17:24 | 2026-11-13T19:19:23 | Awaiting Analysis |
Vulnerability description
The pgEdge Postgres MCP Server allows for SQL injection due to the way it processes JSON arguments in custom pl-do tools. Before the release of version 1.1.0, these tools could insert arbitrary SQL code by using specific dollar-quote markers, which could lead to unauthorized access to data or the ability to alter system resources [1].
Attack surface and exploitation prerequisites
The flaw only occurs when at least one pl-do custom tool is installed, and arguments that include the dollar-quote tags can inject SQL [1]. The method of exploitation suggests it can be carried out remotely without requiring user interaction, and it does not demand elevated privileges [1].
Impact analysis
This flaw can allow access to data and modification of resources available to the connecting role, bypassing readonly [1]. The injected SQL code may allow an attacker to manipulate data or control transaction processes, which could lead to unauthorized access or unauthorized changes to system resources [1].
Affected products and versions
| Affected Product | Affected Version | Fixed Version |
|---|---|---|
| pgedge-postgres-mcp | < 1.1.0 | 1.1.0 |
Exploitation and threat intelligence status
CVE-2026-126197 is not included in the CISA Known Exploited Vulnerabilities Catalog as of November 24, 2026 [2]. The EPSS score estimates a 0.37% likelihood of exploitation within the next 30 days [3].
Detection and exposure assessment
To assess whether an organization is at risk, it should verify if the installed version of pgedge-postgres-mcp is below 1.1.0 [1].
Remediation
The vulnerability was resolved in version 1.1.0 [1].
Remediation checklist
Evidence gaps
- The sources do not describe the technical process by which the injection occurs.
- The sources do not provide any indicators of compromise.
- The sources do not explain the internal architecture of the product.
- The sources do not mention any alternative solutions or mitigating controls.
References
- CVE-2026-126197 record. NIST National Vulnerability Database (NVD), 2026-11-13. https://nvd.nist.gov/vuln/detail/CVE-2026-126197. Accessed 2026-11-24.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-24. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-24.
- EPSS score for CVE-2026-126197. FIRST, 2026-11-24. https://api.first.org/data/v1/epss?cve=CVE-2026-126197. Accessed 2026-11-24.
Summary
pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, custom pl-do tools interpolated JSON arguments into a PostgreSQL DO block delimited by fixed dollar-quote tags. An argument containing $mcp_custom_tool$ could terminate the block and inject arbitrary SQL statements, while $mcp_args$ could inject procedural code into a plpgsql block. Because the statement used the simple query protocol, injected text could include additional statements and transaction control, bypassing read_only and accessing data or modifying resources available to the connecting role. The issue requires at least one pl-do custom tool; sql and pl-func tools pass arguments as bind parameters and are not affected by this injection mechanism. This issue is fixed in 1.1.0.
Severity breakdown
High · 8.8
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| pgEdge pgedge-postgres-mcp | < 1.1.0 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- pgEdge pgedge-postgres-mcp
Frequently asked questions
What is CVE-2026-126197?
CVE-2026-126197 impacts the pgEdge Postgres MCP Server when used with versions older than 1.1.0, permitting SQL injection through the improper handling of JSON arguments. The CVSS 3.1 score is 8.8 HIGH, with the score assigned by security-advisories@github.com. There is no confirmed evidence of exploitation in the reviewed sources. The recommended course of action is to upgrade to version 1.1.0. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).
How severe is CVE-2026-126197?
CVE-2026-126197 has a CVSS 3.1 base score of 8.8 (high), from the CNA (github.com). An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-126197 being exploited?
Not as far as is known: CVE-2026-126197 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126197?
pgEdge pgedge-postgres-mcp < 1.1.0.
How do I fix CVE-2026-126197?
Upgrade the pgEdge Postgres MCP Server to version 1.1.0. Verify that installed versions of pgedge-postgres-mcp are not below 1.1.0. Monitor for any signs of unauthorized access or data manipulation.