CVE-2025-59333
JavaScript vulnerability analysis and mitigation

Overview

The mcp-database-server (MCP Server) version 1.1.0 and earlier, distributed via the npm package @executeautomation/database-server, contains a vulnerability related to improper access control. The vulnerability was discovered and disclosed on September 16, 2025, affecting the npm distribution of the package. This security flaw stems from inadequate implementation of security controls for enforcing a "read-only" mode (GitHub Advisory).

Technical details

The vulnerability stems from insufficient security controls in the MCP Server's implementation of a "read-only" mode. The server attempts to restrict queries to SELECT statements using a simple startsWith("SELECT") check, which proves inadequate as a security measure. The vulnerable code exists in index.ts where the tool call handler processes read_query requests. The severity is rated as High with a CVSS v3.1 score of 8.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H) (GitHub Advisory).

Impact

The vulnerability can lead to multiple security risks including denial of service affecting system availability and unauthorized access to queries running on the server, potentially resulting in data leaks. The flaw allows attackers to execute harmful operations through seemingly benign SELECT queries, including the ability to terminate backend processes and execute stored procedures with side effects (GitHub Advisory).

Mitigation and workarounds

The recommended mitigations include: 1) Avoiding sole reliance on "starts with" SELECT checks, 2) Implementing strict access controls to specific tables that users are authorized to query, 3) Preventing multiple SQL queries from being chained together, and 4) Requiring fine-grained permissions on the database server with explicit access to specific capabilities. Currently, there are no patched versions 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-2025-59145HIGH8.8
  • JavaScriptJavaScript
  • color-name
NoYesSep 15, 2025
CVE-2025-59331HIGH8.8
  • JavaScriptJavaScript
  • is-arrayish
NoYesSep 15, 2025
CVE-2025-59333HIGH8.1
  • JavaScriptJavaScript
  • @executeautomation/database-server
NoNoSep 16, 2025
CVE-2025-9862MEDIUM6.1
  • JavaScriptJavaScript
  • ghost
NoYesSep 15, 2025
CVE-2025-59160LOW2.7
  • JavaScriptJavaScript
  • node-matrix-js-sdk
NoYesSep 16, 2025

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