CVE-2026-144665 in Studio
Summary
by MITRE • 12/04/2026
Supabase Studio before commit 0433eeb5f5cc (supabase/studio Docker image before 2026.06.01-sha-a4334a2) contains an SQL injection vulnerability in filterLiteral() in packages/pg-meta/src/query/Query.utils.ts, which inserted any filter value that began with "ARRAY[" and ended with "]" into generated SQL without quoting it. The Table Editor builds its row queries from filter parameters in the page URL (filter=column:operator:value), so attackers can craft a Table Editor link whose filter value carries arbitrary SQL. When a project member opens the link, Studio runs that SQL against the project database with the privileges Studio uses for the Table Editor, allowing the attacker to read, modify or delete data.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 12/04/2026
The vulnerability identified in Supabase Studio prior to commit 0433eeb5f5cc represents a critical server-side injection flaw rooted in improper input validation and sanitization within the query generation logic. Specifically, the defect resides in the filterLiteral function located in packages/pg-meta/src/query/Query.utils.ts. This component is responsible for processing filter parameters that are passed via URL strings to construct SQL queries for database operations. The core technical failure occurs when the application checks if a filter value begins with ARRAY[ and ends with ]. Instead of treating such values as literal data or properly escaping them, the system inserts these unquoted values directly into the generated SQL statement. This behavior violates fundamental secure coding principles regarding string handling in dynamic query construction, effectively bypassing standard protection mechanisms that rely on quoting to distinguish between code and data.
From an operational perspective, this vulnerability is particularly dangerous due to its exploitation vector through the Table Editor interface. The Table Editor constructs row queries based on filter parameters embedded directly within the page URL using a format such as filter=column:operator:value. Because these URLs can be easily crafted by attackers and shared with unsuspecting users, the attack does not require authentication or complex interaction beyond opening a malicious link. When a project member opens this specially constructed link, Supabase Studio executes the injected SQL against the associated database. The execution occurs under the privileges assigned to the Table Editor role within that specific project context. This means an attacker can leverage these elevated permissions to perform unauthorized read operations on sensitive data, modify existing records to alter business logic or steal information, or delete critical rows, leading to a complete compromise of data integrity and confidentiality for that database instance.
This vulnerability aligns with CWE-89 Improper Neutralization of Special Elements used in an SQL Command commonly known as SQL Injection. The specific mechanism involves the lack of proper quoting for array-like structures which are interpreted by the PostgreSQL engine rather than treated as string literals. In terms of offensive security frameworks, this exploitation technique maps to ATT&CK T1059 Command and Scripting Interpreter where the attacker uses SQL commands to interact with the database backend, and potentially T1078 Valid Accounts if the victim is a legitimate project member whose session tokens allow access to the Table Editor. The impact extends beyond simple data theft as it allows for arbitrary code execution within the context of the database engine, which can sometimes be leveraged further depending on the specific configuration and extensions enabled in the PostgreSQL instance.
Mitigation strategies must focus primarily on immediate patching and long-term defensive coding practices. Organizations running Supabase Studio versions prior to 2026.06.01-sha-a4334a2 should upgrade immediately to a version that includes commit 0433eeb5f5cc or later, which addresses the input validation logic in Query.utils.ts. For environments where immediate patching is not feasible, network-level controls such as Web Application Firewalls can be configured to detect and block SQL injection patterns involving array syntax within URL parameters. Additionally, developers should implement strict allow-lists for filter operators and ensure that all dynamic inputs are parameterized or properly escaped before being concatenated into SQL strings. Regular security audits of query construction logic in frontend-to-backend communication channels are essential to prevent similar injection vulnerabilities from arising in other parts of the application stack.