# CVE-2026-125321: pgEdge Postgres MCP Server login rate limiting can be evaded by a caller-supplied header

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-11-10T17:36:23.877Z
- Modified: 2026-11-12T22:18:51.470Z
- Weaknesses: CWE-770, CWE-807
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pgEdge pgedge-postgres-mcp: < 1.1.0

## References

- <https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-v347-v3w7-7fq9>
- <https://github.com/pgEdge/pgedge-postgres-mcp/issues/204>
- <https://github.com/pgEdge/pgedge-postgres-mcp/pull/205>
- <https://github.com/pgEdge/pgedge-postgres-mcp/commit/6a19e46a240b9f4661a4a253811948dd75c4077e>

## Sources

- CVE List: [CVE-2026-125321](https://www.cve.org/CVERecord?id=CVE-2026-125321), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-125321](https://nvd.nist.gov/vuln/detail/CVE-2026-125321), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-125321 · Whole record: https://cve.day/CVE-2026-125321.json · Rebuilt by cve.day 2026-11-25T22:59:49.812Z
