Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › AI

CVE-2026-126197 — pgEdge pgedge-postgres-mcp

High · CVSS 8.8EPSS 0.5% First seen November 12, 2026

One of 4 pgEdge pgedge-postgres-mcp vulnerabilities published together by NVD: our article covers all of them.

AIDatabasesVulnerabilitiesLaw enforcement

Research article

pgEdge Postgres MCP Server SQL Injection Flaw in Versions Before 1.1.0

CVECVE-2026-126197
Vendor and productpgEdge pgedge-postgres-mcp
PublishedNovember 24, 2026 20:20 UTC
Research cut-offNovember 24, 2026 19:50 UTC
Sources reviewed3: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-126197pgEdgepgedge-postgres-mcpCWE-898.8 HIGH, scored by security-advisories@github.com2026-11-12T18:17:242026-11-13T19:19:23Awaiting 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 ProductAffected VersionFixed Version
pgedge-postgres-mcp< 1.1.01.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

  1. Upgrade the pgEdge Postgres MCP Server to version 1.1.0 [1].
  2. Verify that installed versions of pgedge-postgres-mcp are not below 1.1.0 [1].
  3. Monitor for any signs of unauthorized access or data manipulation.

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

  1. 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. CVE record, CVSS scores, affected versions, vulnerability description
  2. 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. Exploitation status
  3. 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. EPSS score and its interpretation

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 8.8 CVSS 3.1 base score from the CNA (github.com)

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

Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected and fixed versions

ProductAffected versionsFixed in
pgEdge pgedge-postgres-mcp< 1.1.0—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Details from NVD (public domain).

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.

Timeline & sources

References

Related vulnerabilities & news