CVE-2026-126196

Source
https://cve.org/CVERecord?id=CVE-2026-126196
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126196.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-126196
Aliases
  • GHSA-j7mp-839j-jrm7
Published
2026-11-12T17:27:28Z
Modified
2026-11-13T10:30:43Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
pgEdge Postgres MCP Server read-only mode can be bypassed by SQL statement smuggling through query_database
Details

pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, query_database on a read_only connection could send unrecognized statements through pgx Exec without bind parameters, selecting PostgreSQL's simple query protocol and allowing multiple semicolon-separated statements in one request. A caller could combine transaction or session state changes with database writes, and pooled session state could leave later calls writable, when the connecting role held write privileges. The flaw affected deployments relying on read_only as a safety boundary, could compromise integrity and availability, and did not add confidentiality impact beyond the reads already permitted by the connection. This issue is fixed in 1.1.0.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-693",
        "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126196.json"
}
References

Affected packages

Git / github.com/pgedge/pgedge-postgres-mcp

Affected ranges

Type
GIT
Repo
https://github.com/pgedge/pgedge-postgres-mcp
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "1.1.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "b5b929305de7a22cd6ed7de8ae1be2ac90ca0868"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v1.1.0",
            "range": [
                {
                    "fixed": "25c2aaed03398584ceea0dd71f7f67631c3dff4e"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

Other
kb-2026-04-22
kb-2026-04-27
v1.*
v1.0.0
v1.0.0-alpha1
v1.0.0-alpha2
v1.0.0-alpha3
v1.0.0-alpha4
v1.0.0-alpha5
v1.0.0-alpha6
v1.0.0-beta1
v1.0.0-beta3
v1.0.0-beta3a

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126196.json"