Command Injection Affecting awslabs.postgres-mcp-server package, versions [,1.1.7)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.74% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-AWSLABSPOSTGRESMCPSERVER-21693686
  • published24 Oct 2026
  • disclosed10 Sept 2026
  • creditUnknown

Introduced: 10 Sep 2026

CVE-2026-87911  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade awslabs.postgres-mcp-server to version 1.1.7 or higher.

Overview

awslabs.postgres-mcp-server is an An AWS Labs Model Context Protocol (MCP) server for postgres

Affected versions of this package are vulnerable to Command Injection via the SQL validation process. An attacker can execute arbitrary operating system commands by submitting a specially crafted COPY ... TO PROGRAM statement that is processed when an authenticated user interacts with the server in its default read-only mode.

CVSS Base Scores

version 4.0
version 3.1