CVE-2025-59333
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management