Skip to content
HighVulnerability

CVE-2026-61851: Chartbrew runQuery read-only enforcement bypass via incomplete keyword blocklist

Identifier
CVE-2026-61851
Published
Record updated
View JSON

Summary

Chartbrew's runQuery() in server/modules/ai/orchestrator/tools/runQuery.js, prior to 5.2.2, attempts to enforce read-only database access with a blocklist of only seven SQL keywords. An authenticated user with AI feature access can run dangerous statements or database functions missing from that blocklist, with no SQL injection needed. Depending on the database engine, configuration and user privileges, this can expose or write files, reach internal network resources, change privileges, execute commands or alter data.

Mitigation

Fixed in 5.2.2.