Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114081 Overview
CVE-2026-114081 is a SQL injection vulnerability in Trigger.dev versions prior to 4.5.6. The flaw resides in the TSQL query compiler, which concatenates window-function names into generated ClickHouse SQL without allowlisting or escaping. Authenticated customers can submit a backtick-quoted identifier to the POST /api/v1/query endpoint that injects a raw subquery outside the per-tenant WHERE guard. The injected subquery executes with full access to the shared ClickHouse backend, enabling exfiltration of other tenants' analytics data. The weakness is tracked under CWE-89.
Critical Impact
Any authenticated tenant can bypass multi-tenant isolation and read analytics data belonging to other organizations hosted on the same Trigger.dev instance.
Affected Products
- Trigger.dev versions earlier than 4.5.6
- Self-hosted Trigger.dev deployments backed by ClickHouse
- Trigger.dev Cloud tenants prior to the vendor's patch rollout
Discovery Timeline
- 2026-10-21 - CVE-2026-114081 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-114081
Vulnerability Analysis
Trigger.dev exposes a TSQL-style query interface that compiles user-submitted queries into ClickHouse SQL. The compiler safely parameterizes most values but treats window-function identifiers as trusted strings. When the compiler emits a window specification, it concatenates the caller-supplied function name directly into the generated SQL text. The server also accepts backtick-quoted identifiers, which the compiler forwards verbatim into the final statement.
An authenticated tenant can abuse this gap by submitting a window-function name that contains a terminating backtick followed by arbitrary SQL. Because the per-tenant WHERE clause is appended to the outer query, the injected payload runs as a sibling subquery and is not constrained by the tenant filter. The result is a cross-tenant read primitive against the shared ClickHouse analytics store.
Root Cause
The root cause is missing identifier allowlisting and escaping inside the TSQL compiler path responsible for emitting window-function expressions. Trigger.dev relied on parameter binding for literals but assumed function identifiers were safe. The compiler never validated the identifier against a known set of window functions, nor did it escape embedded backticks before interpolation.
Attack Vector
Exploitation requires only valid tenant credentials and network reachability to the Trigger.dev API. The attacker issues a crafted POST /api/v1/query request containing a window function whose name closes the identifier quoting and introduces a new subquery referencing other tenants' tables. The injected ClickHouse statement executes server-side and returns results in the normal query response, giving the attacker a direct exfiltration channel.
No verified public exploit code is available at publication time. Technical specifics are documented in the GitHub Security Advisory GHSA-9q4r-4842-93vw and the VulnCheck Advisory for Trigger.dev SQL Injection.
Detection Methods for CVE-2026-114081
Indicators of Compromise
- POST /api/v1/query requests containing backtick characters inside window-function identifiers.
- ClickHouse query logs showing subqueries that reference organizationId or tenantId values other than the caller's.
- Unusually large result sets returned from the analytics query endpoint to a single tenant.
- Query bodies containing SQL keywords such as UNION, SELECT, or FROM embedded in function-name positions.
Detection Strategies
- Parse Trigger.dev application logs for TSQL payloads where window-function names contain non-alphanumeric characters.
- Enable ClickHouse query_log and alert on statements whose tenant predicate does not match the authenticated session.
- Compare the compiled SQL emitted by Trigger.dev against the originating API request to flag identifier tampering.
Monitoring Recommendations
- Forward Trigger.dev API access logs and ClickHouse system.query_log to a centralized analytics store for retroactive hunting.
- Baseline per-tenant query volume and alert on sudden spikes that correlate with window-function usage.
- Track authentication events for tenants that begin exercising the /api/v1/query endpoint for the first time.
How to Mitigate CVE-2026-114081
Immediate Actions Required
- Upgrade Trigger.dev to version 4.5.6 or later on all self-hosted deployments.
- Rotate ClickHouse credentials used by the Trigger.dev backend if cross-tenant access is suspected.
- Audit historical ClickHouse query logs for evidence of cross-tenant reads prior to patching.
- Restrict network exposure of the /api/v1/query endpoint to trusted clients where feasible.
Patch Information
The vendor fixed the vulnerability in Trigger.dev 4.5.6 by allowlisting supported window-function identifiers and rejecting backtick-quoted names in the TSQL compiler. Patch details are published in the GitHub Security Advisory GHSA-9q4r-4842-93vw.
Workarounds
- Place a reverse-proxy rule in front of /api/v1/query that rejects request bodies containing backtick characters.
- Temporarily disable the TSQL query feature for tenants that do not require analytics access.
- Enforce ClickHouse row-level security policies tied to the tenant identifier as a defense-in-depth control.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

