SQL Injection Vulnerability in pgEdge Postgres MCP Server
CVE-2026-125320
What is CVE-2026-125320?
The pgEdge Postgres MCP Server allows SQL queries to be executed against PostgreSQL databases using Model Context Protocol compatible clients. Before version 1.1.0, it exposed a vulnerability due to improper validation of the Origin header on incoming HTTP requests. This flaw could enable an attacker to exploit DNS rebinding tactics, targeting users who visit a malicious page. If successful, the attacker could access a locally running server, gaining sensitive information from the database schemas and query results. The vulnerability specifically affects setups where HTTP transport is enabled, alongside a browser on the same machine, while the standard stdio transport remains unexposed. The issue has been patched in version 1.1.0.
Affected Version(s)
pgedge-postgres-mcp < 1.1.0
