
Cloud Vulnerability DB
A community-led vulnerabilities database
The mcp-database-server (MCP Server) 1.1.0 and earlier, as distributed via the npm package @executeautomation/database-server, contains a vulnerability that fails to implement adequate security controls to properly enforce a "read-only" mode. This vulnerability affects only the npm distribution and was discovered on September 16, 2025. The vulnerability impacts systems using the affected package for database interactions, particularly with PostgreSQL and potentially other database systems (GitHub Advisory, NVD).
The vulnerability stems from improper access control (CWE-284) in the handling of the read_query tool. The server implements a naive security check that only verifies if a query starts with "SELECT" to enforce read-only mode. This implementation is insufficient as it can be bypassed through various means, including the use of stored procedures and multiple queries chained with semicolons. The vulnerability has been assigned a CVSS v3.1 score of 8.1 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (GitHub Advisory).
The vulnerability presents two significant security risks: First, it enables denial of service attacks affecting system availability through the execution of administrative operations like pg_terminate_backend(). Second, it allows unauthorized access to running queries and potential data leaks, compromising confidentiality. The vulnerability can be exploited to cause unexpected behaviors and service disruptions in affected database systems (GitHub Advisory, Miggo).
Several recommendations have been provided to mitigate this vulnerability: 1) Avoid relying solely on the "starts with SELECT" check, 2) Implement strict access controls to specific tables that users are authorized to query, 3) Prevent multiple SQL queries from being chained together, and 4) Implement fine-grained permissions on the database server with explicit access to specific capabilities. No patched version is currently available (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."