Shellfeed logo Shellfeed

CVE-2026-125321 · MEDIUM (CVSS 6.5)

Summary: pgEdge Postgres MCP Server login rate limiting can be evaded by a caller-supplied header

EPSS: 0.5% probability of exploitation in the next 30 days (percentile 41.1).

Details

pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, deployments exposing the nondefault HTTP transport with authentication enabled used the leftmost caller-supplied X-Forwarded-For value as the client address for login rate limiting. ExtractIPAddress in internal/auth/middleware.go supplied that value to IsAllowed and RecordFailedAttempt in internal/auth/rate_limiter.go, allowing an unauthenticated caller to rotate addresses to evade throttling or assert another user's address to consume that user's limiter bucket. The published nginx configuration appended rather than replaced X-Forwarded-For, making the issue reachable without an operator misconfiguration. Username-keyed account lockout did not use the client address, but shipped defaults disabled that separate control through MaxFailedAttemptsBeforeLockout: 0. This issue is fixed in version 1.1.0.

Severity

MEDIUM (CVSS 6.5) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Affected packages

  • GIT github.com/pgedge/pgedge-postgres-mcp [0 – 25c2aaed03398584ceea0dd71f7f67631c3dff4e]

References

Posts about CVE-2026-125321