A SQL injection (CWE-89) and security boundary bypass (CWE-863) vulnerability exists in the prebuilt BigQuery forecasting tool (bigquery-forecast) of googleapis/mcp-toolbox. The tool accepts client-controlled parameters (data_col, timestamp_col, and id_cols) as plain strings and interpolates them unescaped via fmt.Sprintf directly into a generated AI.FORECAST table-valued SELECT statement. While MCP Toolbox utilizes an allowedDatasets mechanism to restrict queries, this defense only validates the history_data parameter; the final assembled query is executed without re-validation. An attacker can break out of the string literal fields (such as timestamp_col) to inject a valid multi-statement or cross-dataset query block. This allows an unauthorized user to bypass the operator-configured allowedDatasets boundary and read arbitrary BigQuery tables.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/googleapis/mcp-toolbox/pull/3324 Patch, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.6 · googleNVD modified 2026-10-24 19:10
Affected (CPE criteria) 1
cpe:2.3:a:google:mcp_toolbox_for_databases:*:*:*:*:*:*:*:*
References 1
- https://github.com/googleapis/mcp-toolbox/pull/3324 Patch, Vendor Advisory